/* ==========================================================================
   PintWise — zeynatech.com
   Shared stylesheet. Light + dark themes via CSS custom properties.
   No build step, no dependencies.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand constants (from the app icon) */
  --brand-navy: #0d2340;
  --brand-navy-deep: #081a30;
  --brand-amber: #e8a23c;
  --brand-amber-strong: #d68a1e;
  --brand-blue: #3a9bdc;
  --brand-foam: #f7f9fb;

  /* Light theme (default) */
  --bg: #fbfaf6;
  --bg-alt: #f2eee4;
  --surface: #ffffff;
  --surface-2: #f7f4ec;
  --text: #142239;
  --text-muted: #56617a;
  --border: rgba(13, 35, 64, 0.10);
  --border-strong: rgba(13, 35, 64, 0.16);
  --accent: #c17a12;          /* amber, darkened for contrast on light */
  --accent-hover: #a5660b;
  --link: #1f6fb0;
  --shadow-sm: 0 1px 2px rgba(13, 35, 64, 0.06), 0 2px 8px rgba(13, 35, 64, 0.05);
  --shadow-md: 0 8px 24px rgba(13, 35, 64, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 35, 64, 0.16);

  /* The showcase band is always dark navy to sit under the screenshots */
  --showcase-bg: radial-gradient(120% 100% at 50% 0%, #14345c 0%, #0d2340 45%, #081a30 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 48px);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="dark"] {
  --bg: #0a1a30;
  --bg-alt: #0d2340;
  --surface: #12294a;
  --surface-2: #16305a;
  --text: #eef3fa;
  --text-muted: #9db0ca;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #f0b24a;
  --accent-hover: #f6c368;
  --link: #6fbdf0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.5);
}

/* Honor OS preference when the user hasn't chosen explicitly */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1a30;
    --bg-alt: #0d2340;
    --surface: #12294a;
    --surface-2: #16305a;
    --text: #eef3fa;
    --text-muted: #9db0ca;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --accent: #f0b24a;
    --accent-hover: #f6c368;
    --link: #6fbdf0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.5);
  }
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section { padding-block: clamp(56px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 6vw, 64px); text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.section__head p { color: var(--text-muted); font-size: 1.15rem; margin: 0; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-amber) 0%, var(--brand-amber-strong) 100%);
  color: #2a1a05;
  box-shadow: 0 6px 18px rgba(214, 138, 30, 0.35);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(214, 138, 30, 0.45); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); }

/* Official-style App Store badge link */
.appstore {
  display: inline-block;
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 12px;
}
.appstore:hover { transform: translateY(-2px); opacity: 0.9; }
.appstore img { height: 54px; width: auto; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a.navlink {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a.navlink:hover { color: var(--text); text-decoration: none; }

.nav-hide-sm { }
@media (max-width: 640px) {
  .nav-hide-sm { display: none; }
  .site-nav { gap: 0.9rem; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 104px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 15% 0%, rgba(58, 155, 220, 0.18), transparent 60%),
    radial-gradient(55% 60% at 100% 20%, rgba(232, 162, 60, 0.20), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 0.35em;
}
.hero__title .accent { color: var(--accent); }
.hero__lede {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 34ch;
  margin-bottom: 1.75rem;
}
.hero__cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__meta {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  margin-top: 1.6rem; color: var(--text-muted); font-size: 0.95rem;
}
.hero__meta strong { color: var(--text); }
.stars { color: var(--brand-amber); letter-spacing: 2px; }

/* Floating hero device */
.hero__device {
  position: relative;
  justify-self: center;
  width: min(340px, 78vw);
  filter: drop-shadow(0 30px 60px rgba(8, 26, 48, 0.45));
}
.hero__device img { width: 100%; border-radius: 42px; }
.hero__blob {
  position: absolute;
  inset: -12% -18% -8% -18%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 40%, rgba(58,155,220,0.35), transparent 70%);
  filter: blur(30px);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lede { margin-inline: auto; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hero__device { grid-row: 1; margin-bottom: 0.5rem; width: min(280px, 70vw); }
}

/* ---- Feature rows -------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.feature-row + .feature-row { margin-top: clamp(56px, 9vw, 110px); }
.feature-row:nth-child(even) .feature-row__media { order: -1; }
.feature-row__text h3 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.feature-row__text p { color: var(--text-muted); font-size: 1.1rem; }
.feature-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.85rem; }
.feature-list li { position: relative; padding-left: 2rem; color: var(--text); }
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.35em;
  width: 1.2rem; height: 1.2rem;
  background: var(--accent);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}
:root { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.55 17.6 4.4 12.45l1.4-1.4 3.75 3.75 8.25-8.25 1.4 1.4z'/%3E%3C/svg%3E"); }

.feature-row__media { display: grid; place-items: center; }
.feature-row__media img {
  width: min(300px, 80%);
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .feature-row:nth-child(even) .feature-row__media { order: 0; }
  .feature-list { text-align: left; max-width: 30ch; margin-inline: auto; }
  .feature-row__media img { width: min(260px, 70%); }
}

/* ---- Icon feature cards -------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-amber) 20%, transparent);
  color: var(--accent);
  margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.card p { color: var(--text-muted); margin: 0; font-size: 1rem; }

/* ---- Screenshot showcase (always dark) ---------------------------------- */
.showcase { background: var(--showcase-bg); color: #eaf1fb; }
.showcase .section__head h2 { color: #fff; }
.showcase .section__head p { color: #a9c0dc; }
.shots {
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 28px;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 99px; }
.shots img {
  flex: 0 0 auto;
  width: clamp(200px, 40vw, 264px);
  border-radius: 26px;
  scroll-snap-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

/* ---- Pricing ------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 780px; margin-inline: auto; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.price-card--pro { border-color: var(--accent); box-shadow: var(--shadow-md); }
.price-card__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-strong));
  color: #2a1a05; font-family: var(--font-display); font-weight: 700;
  font-size: 0.8rem; padding: 4px 14px; border-radius: 99px; letter-spacing: 0.02em;
}
.price-card h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.price-card__price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin: 0.2rem 0 0.1rem; }
.price-card__price span { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.price-card__mo { margin: 0.15rem 0 0.9rem; color: var(--text-muted); font-weight: 600; font-size: 0.98rem; }
.price-card p { color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.7rem; text-align: left; }
.price-card li { position: relative; padding-left: 1.8rem; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem;
  background: var(--accent); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}
@media (max-width: 620px) { .pricing { grid-template-columns: 1fr; } }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { text-align: center; }
.cta-band__inner {
  background: var(--showcase-bg);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 72px) var(--gutter);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: #fff; }
.cta-band p { color: #b8cbe4; max-width: 44ch; margin: 0 auto 1.75rem; font-size: 1.15rem; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: 48px;
  font-size: 0.95rem;
}
.site-footer__grid {
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  justify-content: space-between; align-items: flex-start;
}
.site-footer .brand { font-size: 1.05rem; margin-bottom: 0.6rem; }
.site-footer__tagline { color: var(--text-muted); max-width: 30ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-links a { color: var(--text-muted); font-weight: 600; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.site-footer__legal { margin-top: 28px; color: var(--text-muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }

/* ---- Legal / long-form article ------------------------------------------ */
.legal { padding-block: clamp(40px, 7vw, 80px); }
.legal__wrap { max-width: 760px; margin-inline: auto; }
.legal__updated {
  display: inline-block; color: var(--text-muted); font-size: 0.92rem;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 99px; margin-bottom: 1.5rem;
}
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.3rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal p { color: var(--text); }
.legal a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.legal .back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 2rem; font-weight: 600; color: var(--text-muted); }
.legal .back-link:hover { color: var(--text); text-decoration: none; }

/* ---- Utilities ----------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.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;
}
