:root {
      --bg: #F3EEE4;
      --surface: #FCF8F1;
      --surface-subtle: #F3EBDC;
      --border: #E7DDCC;
      --text: #1F2933;
      --muted: #52606D;
      --accent: #B7791F;
      --accent-text: #111827;
      --dark-bg: #182233;
      --dark-surface: #202C3C;
      --dark-subtle: #2F3B49;
      --dark-border: #3A4552;
      --dark-text: #F3EAD4;
      --dark-muted: #B9AC8C;
      --shadow: 0 22px 60px rgba(31, 41, 51, 0.10);
      --soft-shadow: 0 12px 28px rgba(31, 41, 51, 0.08);
      --radius-xl: 30px;
      --radius-lg: 22px;
      --radius-md: 16px;
      --header-height: 80px;
      --page: min(1120px, calc(100% - 36px));
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--text);
      background:
        radial-gradient(circle at 12% 0%, rgba(183, 121, 31, 0.14), transparent 34rem),
        linear-gradient(180deg, #F8F4EC 0%, var(--bg) 100%);
      font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
      line-height: 1.55;
    }
    a { color: inherit; }
    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      border-bottom: 1px solid rgba(231,221,204,0.72);
      background: rgba(243,238,228,0.84);
      backdrop-filter: blur(18px);
    }
    .header-inner {
      width: var(--page);
      margin: 0 auto;
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      min-width: 0;
    }
    .brand img {
      width: 80px;
      height: 80px;
      object-fit: contain;
      display: block;
    }
    .brand-text strong {
      display: block;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.02em;
    }
    .brand-text span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }
    .menu-toggle {
      display: none;
    }
    .nav {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }
    .nav a {
      flex: 0 0 auto;
      border-radius: 999px;
      padding: 9px 12px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 800;
      text-decoration: none;
    }
    .nav a.active, .nav a:hover {
      background: var(--surface-subtle);
      color: var(--text);
    }
    .nav a.cta {
      background: var(--accent);
      color: var(--accent-text);
    }
    .mobile-nav-only {
      display: none;
    }

    main {
      width: var(--page);
      margin: 0 auto;
      padding: 34px 0 44px;
    }
    .page-view { display: none; animation: fade .18s ease-in; }
    .page-view.active { display: block; }
    #method,
    #app-preview,
    #pricing {
      scroll-margin-top: 96px;
    }
    @keyframes fade { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 2.15fr) minmax(180px, .85fr);
      gap: 12px;
      align-items: center;
    }
    .hero > .panel {
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }
    .panel, .card {
      background: rgba(252,248,241,0.92);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
    }
    .panel { padding: clamp(24px, 4vw, 42px); }
    .eyebrow {
      margin: 0 0 12px;
      color: var(--accent);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    h1, h2, h3, p { margin-top: 0; }
    h1 {
      max-width: 720px;
      margin-bottom: 18px;
      font-size: clamp(42px, 7vw, 78px);
      line-height: .94;
      letter-spacing: -0.06em;
    }
    h2 {
      margin-bottom: 14px;
      font-size: clamp(30px, 4vw, 42px);
      line-height: 1.02;
      letter-spacing: -0.052em;
    }
    h3 {
      margin-bottom: 8px;
      font-size: 22px;
      line-height: 1.14;
      letter-spacing: -0.03em;
    }
    .lead {
      max-width: min(880px, 100%);
      color: var(--muted);
      font-size: 20px;
    }
    .button-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 26px;
    }
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      border-radius: 18px;
      padding: 0 18px;
      background: var(--accent);
      color: var(--accent-text);
      font-weight: 900;
      text-decoration: none;
      border: 1px solid rgba(183,121,31,.35);
      box-shadow: 0 14px 24px rgba(183,121,31,.20);
    }
    .button.secondary {
      background: var(--surface);
      color: var(--text);
      border-color: var(--border);
      box-shadow: none;
    }
    .coming-soon {
      cursor: default;
      opacity: 0.82;
      box-shadow: none;
    }
    .note {
      margin-top: 16px;
      color: var(--muted);
      font-size: 14px;
    }
    .method-line {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin: 22px 0 4px;
      color: var(--muted);
      font-size: 16px;
      font-weight: 900;
    }
    .method-line span {
      position: relative;
      padding: 0;
      color: var(--text);
    }
    .method-line em {
      color: var(--accent);
      font-style: normal;
      font-weight: 900;
    }
    .hero-visual {
      display: grid;
      place-items: center;
      align-self: center;
      padding: 0;
    }
    .hero-logo {
      width: min(70%, 240px);
      height: auto;
      object-fit: contain;
    }

    .section {
      margin-top: 22px;
      padding: 28px;
    }
    .page-view > .panel,
    .page-view > .card.section {
      background: transparent;
      border: 0;
      border-top: 1px solid var(--border);
      border-radius: 0;
      box-shadow: none;
    }
    .page-view > .panel:first-child,
    .page-view > .card.section:first-child {
      border-top: 0;
      padding-top: 0;
    }
    .section.compact { padding: 22px; }
    .grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 16px;
    }
    .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mini-card {
      padding: 20px;
      border-radius: 22px;
      background: rgba(255,255,255,.46);
      border: 1px solid var(--border);
    }
    .mini-card strong {
      display: block;
      margin-bottom: 6px;
      font-size: 17px;
      letter-spacing: -0.02em;
    }
    .mini-card p, .muted { color: var(--muted); }
    .pill-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }
    .pill {
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 8px 12px;
      background: var(--surface-subtle);
      color: var(--text);
      font-size: 14px;
      font-weight: 850;
    }
    .divider {
      height: 1px;
      background: var(--border);
      margin: 20px 0;
    }

    .why-list {
      display: grid;
      gap: 10px;
      margin-top: 16px;
    }
    .why-item {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 12px;
      align-items: center;
      padding: 14px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: rgba(255,255,255,.45);
    }
    .num {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: var(--surface-subtle);
      color: var(--accent);
      font-weight: 950;
      border: 1px solid var(--border);
    }
    .why-item p { margin: 0; color: var(--muted); }

    .vertical-method {
      width: min(560px, 100%);
      margin: 18px auto 0;
      display: grid;
      gap: 12px;
    }
    .method-step {
      display: grid;
      grid-template-columns: 44px 1fr;
      gap: 12px;
      align-items: start;
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: 24px;
      background: rgba(252,248,241,.84);
      box-shadow: var(--soft-shadow);
    }
    .step-number {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: var(--surface-subtle);
      color: var(--accent);
      font-weight: 950;
      border: 1px solid var(--border);
    }
    .step-arrow {
      text-align: center;
      color: var(--accent);
      font-weight: 950;
      font-size: 20px;
      line-height: 1;
    }
    .fade-stack {
      margin: 10px auto 0;
      width: min(260px, 100%);
      text-align: center;
      font-weight: 900;
      line-height: 1.25;
    }
    #method .fade-stack {
      transform: translateX(-28px);
    }
    .fade-stack span {
      display: block;
      margin: 4px 0;
    }
    .fade-stack small {
      color: var(--accent);
      font-weight: 900;
    }

    .privacy-strip {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px;
      margin-top: 18px;
    }
    .trust {
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: var(--surface);
    }
    .trust strong { display:block; margin-bottom:5px; }

    .app-preview-header {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      align-items: start;
    }
    .app-preview-header .lead {
      max-width: none;
    }
    .screenshot-control {
      display: flex;
      align-items: center;
      justify-self: end;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 900;
    }
    .screenshot-carousel {
      position: relative;
    }
    .screens-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
      margin-top: 16px;
    }
    .shot-card {
      padding: 0;
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }
    .phone-frame {
      background: #111827;
      border-radius: 28px;
      padding: 7px;
      overflow: hidden;
      aspect-ratio: 1320 / 2868;
    }
    .phone-frame.light {
      background: #EFE8DA;
    }
    .phone-frame img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      border-radius: 22px;
      transition: opacity .16s ease;
    }
    .phone-frame img.switching {
      opacity: .72;
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .phone-frame img { transition: none; }
    }
    .shot-caption {
      padding: 12px 4px 2px;
      text-align: center;
    }
    .shot-caption strong {
      display: block;
      margin-bottom: 3px;
      font-size: 15px;
    }
    .shot-caption span {
      display: block;
      color: var(--muted);
      font-size: 13px;
    }
    .screenshot-mode {
      display: inline-flex;
      gap: 4px;
      padding: 4px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--surface-subtle);
    }
    .screenshot-mode button {
      border: 0;
      border-radius: 999px;
      padding: 7px 12px;
      color: var(--muted);
      background: transparent;
      font: inherit;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }
    .screenshot-mode button.active,
    .screenshot-mode button[aria-pressed="true"] {
      color: var(--text);
      background: var(--surface);
      box-shadow: var(--soft-shadow);
    }
    .screenshot-arrow,
    .screenshot-dots {
      display: none;
    }

    .price-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-top: 16px;
    }
    .price-card {
      padding: 22px;
      border-radius: 24px;
      border: 1px solid var(--border);
      background: var(--surface);
    }
    .price {
      margin: 0 0 10px;
      color: var(--accent);
      font-size: 36px;
      line-height: 1;
      font-weight: 950;
      letter-spacing: -0.05em;
    }
    .price-description {
      color: var(--muted);
      margin-bottom: 12px;
    }
    ul.clean {
      padding-left: 18px;
      margin: 8px 0 0;
    }
    ul.clean li { margin: 6px 0; color: var(--muted); }

    .apps-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 18px;
    }
    .app-tile {
      display: grid;
      grid-template-columns: 78px 1fr;
      gap: 16px;
      align-items: center;
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: 24px;
      background: var(--surface);
      text-decoration: none;
    }
    .app-icon {
      width: 78px;
      height: 78px;
      object-fit: contain;
      border-radius: 20px;
      background: var(--dark-bg);
      padding: 5px;
    }

    .faq {
      display: grid;
      gap: 12px;
      margin-top: 14px;
    }
    details {
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 14px 16px;
      background: rgba(255,255,255,.42);
    }
    summary {
      cursor: pointer;
      font-weight: 900;
      letter-spacing: -0.01em;
    }
    details p {
      margin: 10px 0 0;
      color: var(--muted);
    }
    :is([data-page="/apps/noscript/support"], [data-page="/apps/staypawsed/support"]) > .panel {
      padding-bottom: 14px;
    }
    :is([data-page="/apps/noscript/support"], [data-page="/apps/staypawsed/support"]) > .panel h1 {
      font-size: clamp(40px, 5.2vw, 64px);
    }
    :is([data-page="/apps/noscript/support"], [data-page="/apps/staypawsed/support"]) > .panel .button-row {
      margin-top: 18px;
    }
    :is([data-page="/apps/noscript/support"], [data-page="/apps/staypawsed/support"]) > .card.section {
      margin-top: 12px;
      padding-top: 20px;
    }
    :is([data-page="/apps/noscript/support"], [data-page="/apps/staypawsed/support"]) .faq {
      gap: 8px;
      margin-top: 12px;
    }
    :is([data-page="/apps/noscript/support"], [data-page="/apps/staypawsed/support"]) details {
      padding: 0;
      overflow: hidden;
    }
    :is([data-page="/apps/noscript/support"], [data-page="/apps/staypawsed/support"]) summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      width: 100%;
      padding: 12px 16px;
      list-style: none;
    }
    :is([data-page="/apps/noscript/support"], [data-page="/apps/staypawsed/support"]) summary::-webkit-details-marker {
      display: none;
    }
    :is([data-page="/apps/noscript/support"], [data-page="/apps/staypawsed/support"]) summary::after {
      content: "⌄";
      flex: 0 0 auto;
      color: var(--accent);
      transition: transform .16s ease;
    }
    :is([data-page="/apps/noscript/support"], [data-page="/apps/staypawsed/support"]) details[open] summary::after {
      transform: rotate(180deg);
    }
    :is([data-page="/apps/noscript/support"], [data-page="/apps/staypawsed/support"]) details p {
      max-width: 72rem;
      margin: 0;
      padding: 0 16px 14px;
    }
    .legal-copy p, .legal-copy li {
      color: var(--muted);
    }
    :is([data-page="/apps/noscript/privacy"], [data-page="/apps/staypawsed/privacy"]) .legal-copy .eyebrow {
      color: var(--accent);
      margin: 0 0 12px;
    }
    :is([data-page="/apps/noscript/privacy"], [data-page="/apps/staypawsed/privacy"]) .legal-copy h1 {
      max-width: none;
      font-size: clamp(42px, 5.4vw, 72px);
    }
    :is([data-page="/apps/noscript/privacy"], [data-page="/apps/staypawsed/privacy"]) .legal-copy h2 {
      margin-top: 24px;
      margin-bottom: 6px;
      font-size: 22px;
      line-height: 1.2;
      letter-spacing: -0.03em;
    }
    :is([data-page="/apps/noscript/privacy"], [data-page="/apps/staypawsed/privacy"]) .legal-copy p {
      margin-bottom: 10px;
    }
    :is([data-page="/apps/noscript/privacy"], [data-page="/apps/staypawsed/privacy"]) .legal-copy h2 + p {
      margin-top: 0;
    }
    :is([data-page="/apps/noscript/privacy"], [data-page="/apps/staypawsed/privacy"]) .legal-copy .muted + h2 {
      margin-top: 30px;
    }
    .legal-copy h3 {
      margin-top: 22px;
    }

    .page-footer {
      margin-top: 34px;
      border-top: 1px solid var(--border);
      padding: 24px 0 32px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      color: var(--muted);
      font-size: 13px;
    }
    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .footer-links a {
      color: var(--muted);
      text-decoration: none;
      font-weight: 800;
    }

    @media (max-width: 900px) {
      :is([data-page="/apps/noscript/privacy"], [data-page="/apps/staypawsed/privacy"]) .legal-copy h1 {
        font-size: clamp(38px, 11vw, 56px);
      }
      .header-inner {
        min-height: auto;
        padding: 12px 0;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 100%;
      }
      .brand {
        flex: 1 1 0;
        max-width: none;
      }
      .brand-text {
        min-width: 0;
        overflow: hidden;
      }
      .brand-text strong,
      .brand-text span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 0 14px;
        background: var(--surface);
        color: var(--text);
        font: inherit;
        font-size: 14px;
        font-weight: 900;
        cursor: pointer;
      }
      .nav {
        display: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: var(--surface);
      }
      .nav.open { display: flex; }
      .nav a { width: 100%; max-width: 100%; }
      .mobile-nav-only { display: block; }
      .page-footer {
        justify-content: center;
        text-align: center;
      }
      .footer-links {
        width: 100%;
        justify-content: center;
      }
      .hero, .grid, .grid.two, .privacy-strip, .price-row, .apps-list, .app-preview-header {
        grid-template-columns: 1fr;
      }
      .screenshot-control {
        align-items: center;
        justify-self: center;
        flex-direction: column;
        text-align: center;
      }
      .screenshot-carousel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
      }
      .screens-grid {
        display: flex;
        gap: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 16px 0 0;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
      }
      .screens-grid::-webkit-scrollbar { display: none; }
      .shot-card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
      }
      .phone-frame {
        max-width: 100%;
      }
      .screenshot-arrow {
        position: absolute;
        top: 46%;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgba(252,248,241,.92);
        color: var(--text);
        font: inherit;
        font-weight: 900;
        cursor: pointer;
        transform: translateY(-50%);
      }
      .screenshot-arrow.previous { left: 4px; }
      .screenshot-arrow.next { right: 4px; }
      .screenshot-arrow:disabled {
        cursor: default;
        opacity: .42;
      }
      .screenshot-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
      }
      .screenshot-dots button {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: var(--border);
        cursor: pointer;
      }
      .screenshot-dots button.active,
      .screenshot-dots button[aria-pressed="true"] {
        background: var(--accent);
      }
      .method-line {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px;
      }
      .method-line em {
        display: inline-block;
        transform: rotate(90deg);
        transform-origin: center;
      }
      .button-row {
        justify-content: center;
        text-align: center;
      }
      .hero-logo { width: min(70%, 160px); }
      main { padding-top: 22px; }
      .section { padding: 22px; }
    }
