/* ===========================
   PetPause – Shared Stylesheet
   =========================== */

/* ── Material Symbols Rounded ── */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded', sans-serif;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  user-select: none;
  font-style: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  flex-shrink: 0;
}
.ms-xl  { font-size: 36px; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 40; }
.ms-lg  { font-size: 28px; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 28; }
.ms-sm  { font-size: 18px; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20; }
.ms-xs  { font-size: 15px; font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 16; }
.ms-outline { font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24; }

:root {
  --primary:       #E8741C;
  --primary-dark:  #9A5D2C;
  --primary-light: #FFB678;
  --primary-pale:  #FFF0E0;
  --bg:            #FFFBF5;
  --bg-card:       #F4E7D8;
  --bg-dark:       #11100E;
  --bg-dark2:      #1E1510;
  --text:          #2C1D0E;
  --text-muted:    #756A60;
  --text-light:    #A0907E;
  --border:        #E8D5BE;
  --white:         #FFFFFF;
  --shadow-sm:     0 1px 4px rgba(60,30,10,.08);
  --shadow-md:     0 4px 20px rgba(60,30,10,.12);
  --shadow-lg:     0 12px 48px rgba(60,30,10,.18);
  --radius:        16px;
  --radius-sm:     10px;
  --nav-h:         68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--bg-card); }
.section--dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.section--dark .section-title { color: var(--white); }

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
}

.section--dark .section-sub { color: #B8A898; }

.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,116,28,.35);
}
.btn-primary:hover {
  background: #d4670e;
  box-shadow: 0 6px 24px rgba(232,116,28,.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-pale);
}

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.18);
}

.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,251,245,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav__logo-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.nav__logo-name span { color: var(--primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav__links a:hover {
  color: var(--text);
  background: var(--bg-card);
  text-decoration: none;
}

.nav__cta { margin-left: 8px; }

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* ── Hero ── */
.hero {
  padding: 80px 0 0;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-card) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-pale);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}
.hero__title span { color: var(--primary); }

.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.hero__trust-item .material-symbols-rounded {
  font-size: 15px;
  color: var(--primary);
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 16;
}

.hero__trust-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
}

.hero__img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__img {
  width: 100%;
  max-width: 440px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.hero__img-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at 50% 60%, rgba(232,116,28,.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── Feature Grid ── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── How It Works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
  opacity: .35;
}

.step { text-align: center; }

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 16px rgba(232,116,28,.35);
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Screenshots ── */
.screenshots__scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 32px 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.screenshots__scroll::-webkit-scrollbar { height: 4px; }
.screenshots__scroll::-webkit-scrollbar-track { background: transparent; }
.screenshots__scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.screenshot-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-dark);
}

.screenshot-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.screenshot-item__label {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #C8B8A8;
  background: var(--bg-dark2);
}

/* ── Permissions table ── */
.perms-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 14px;
}
.perms-table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  color: var(--text);
}
.perms-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.5;
}
.perms-table td:first-child {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  white-space: nowrap;
}
.perms-table tr:last-child td { border-bottom: none; }

/* ── Download CTA ── */
.download__inner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 28px;
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.download__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/paw_brand_mark.png') no-repeat right -40px center / 320px;
  opacity: .06;
  pointer-events: none;
}

.download__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}

.download__sub {
  font-size: 17px;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}

.download__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.gplay-badge {
  background: var(--dark, #060606);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
  transition: background .15s;
}
.gplay-badge:hover { background: #222; text-decoration: none; }
.gplay-badge svg { flex-shrink: 0; }

.download__footnote {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  color: #B8A898;
  padding: 48px 0 36px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin: 12px 0 8px;
}

.footer__brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #8A7A6A;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6A5A4A;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: #8A7A6A;
  text-decoration: none;
  transition: color .15s;
}
.footer__links a:hover { color: var(--white); text-decoration: none; }

.footer__bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #5A4A3A;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__logo-img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  opacity: .7;
}

/* ── Privacy Policy Page ── */
.policy-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-card) 100%);
}

.policy-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-pale);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.policy-header__title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}

.policy-header__meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.policy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0 96px;
}

/* Sticky TOC */
.policy-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.policy-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.policy-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.policy-toc__list a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid var(--border);
  transition: color .15s, border-color .15s, background .15s;
  border-radius: 0 4px 4px 0;
  line-height: 1.4;
}
.policy-toc__list a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-pale);
  text-decoration: none;
}

/* Policy Body */
.policy-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 48px 0 16px;
  padding-top: 8px;
}
.policy-body h2:first-child { margin-top: 0; }

.policy-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.policy-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.policy-body ul, .policy-body ol {
  margin: 12px 0 20px 20px;
}
.policy-body li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

.policy-body .summary-card {
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 0 0 32px;
}

.policy-body .summary-card p {
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 15px;
}
.policy-body .summary-card p:last-child { margin-bottom: 0; }

.policy-body .not-collected {
  background: #F0FAF0;
  border: 1px solid #B2DEB2;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}
.policy-body .not-collected p {
  font-weight: 700;
  color: #2A6B2A;
  margin-bottom: 8px;
}
.policy-body .not-collected ul li { color: #2A6B2A; }

.policy-body .contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}
.policy-body .contact-box a {
  font-weight: 600;
  color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__img-wrap { margin-top: 48px; }
  .hero__img { max-width: 360px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step { text-align: left; display: flex; gap: 20px; align-items: flex-start; }
  .step__num { margin: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 16px; }

  .download__inner { grid-template-columns: 1fr; text-align: center; }
  .download__actions { align-items: center; }

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

  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { display: none; }

  .nav__links { display: none; }
  .nav__cta .btn-lg { padding: 12px 20px; font-size: 14px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .features__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .download__inner { padding: 48px 28px; }
  .hero { padding: 56px 0 0; }
}
