/* PinSaver — fresh stylesheet.
   Design system: pale blue-grey #F3F6F8 background, ink navy #0F1E2E,
   deep teal #0F766E, coral CTA #FF5A3C. Fraunces for display headings,
   Inter for body text. Flat colours only — no gradients. */

:root {
  --ps-paper: #f3f6f8;
  --ps-card: #ffffff;
  --ps-ink: #0f1e2e;
  --ps-ink-soft: #3d4f61;
  --ps-line: #d9e2e8;
  --ps-teal: #0f766e;
  --ps-teal-dark: #0b5a54;
  --ps-coral: #ff5a3c;
  --ps-coral-dark: #e04a2e;
  --ps-navy-deep: #0a1622;
  --ps-radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ps-paper);
  color: var(--ps-ink);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .ps-display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ps-ink);
  margin: 0 0 14px;
}

h1 { font-size: 46px; letter-spacing: -0.5px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }

p { margin: 0 0 16px; }

a { color: var(--ps-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.ps-wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.ps-narrow { max-width: 760px; }
.ps-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Top bar ---------- */
.ps-topbar {
  background: var(--ps-card);
  border-bottom: 1px solid var(--ps-line);
  position: sticky; top: 0; z-index: 20;
}
.ps-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 18px;
}
.ps-brand { display: flex; align-items: center; gap: 10px; color: var(--ps-ink); }
.ps-brand:hover { text-decoration: none; }
.ps-brand-mark { border-radius: 8px; display: block; }
.ps-brand-name { font-family: "Fraunces", Georgia, serif; font-size: 24px; font-weight: 700; }
.ps-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.ps-nav a {
  color: var(--ps-ink-soft); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.ps-nav a:hover { color: var(--ps-ink); background: var(--ps-paper); text-decoration: none; }
.ps-nav a.is-active { color: var(--ps-teal); background: #e6f2f0; }

/* ---------- Split hero ---------- */
.ps-hero { padding: 64px 0 56px; }
.ps-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.ps-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--ps-teal);
  margin-bottom: 14px;
}
.ps-hero-copy p.ps-lede { font-size: 19px; color: var(--ps-ink-soft); margin-bottom: 26px; }
.ps-hero-points { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.ps-hero-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.ps-hero-points svg { flex: none; margin-top: 3px; color: var(--ps-teal); }

/* CSS-drawn sample pin-preview card (right side of the hero) */
.ps-pin-card {
  background: var(--ps-card); border: 1px solid var(--ps-line);
  border-radius: 18px; padding: 16px;
  transform: rotate(1.5deg);
}
.ps-pin-media {
  background: var(--ps-teal); border-radius: 12px; min-height: 250px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; color: #fff;
}
.ps-pin-media .ps-pin-tag {
  align-self: flex-start; background: var(--ps-coral); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: auto;
}
.ps-pin-media strong { font-family: "Fraunces", Georgia, serif; font-size: 26px; line-height: 1.2; }
.ps-pin-media span { opacity: 0.9; font-size: 14px; }
.ps-pin-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px 4px; }
.ps-pin-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ps-ink); color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 18px;
}
.ps-pin-row .ps-pin-meta { flex: 1; min-width: 0; }
.ps-pin-row .ps-pin-meta b { display: block; font-size: 15px; }
.ps-pin-row .ps-pin-meta span { font-size: 13px; color: var(--ps-ink-soft); }
.ps-pin-pill {
  background: var(--ps-coral); color: #fff; font-weight: 700; font-size: 14px;
  border-radius: 999px; padding: 8px 16px; white-space: nowrap;
}
.ps-pin-caption { font-size: 13px; color: var(--ps-ink-soft); text-align: center; margin: 14px 0 0; }

/* Hero figure (real artwork, right side of the hero) */
.ps-hero-figure { margin: 0; }
.ps-hero-figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--ps-line); border-radius: 18px;
}
.ps-hero-figure figcaption {
  font-size: 13px; color: var(--ps-ink-soft); text-align: center; margin: 12px 0 0;
}

/* ---------- Command bar (downloader) ---------- */
.ps-cmd { margin-top: 8px; }
.ps-cmd-tabs { display: flex; gap: 22px; margin-bottom: 10px; }
.ps-cmd-tab {
  font-weight: 600; font-size: 15px; color: var(--ps-ink-soft);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.ps-cmd-tab:hover { color: var(--ps-ink); text-decoration: none; }
.ps-cmd-tab.is-active { color: var(--ps-teal); border-bottom-color: var(--ps-teal); }
.ps-cmd-form {
  display: flex; align-items: stretch; gap: 0;
  background: var(--ps-card); border: 2px solid var(--ps-ink);
  border-radius: var(--ps-radius); overflow: hidden;
}
.ps-cmd-form:focus-within { border-color: var(--ps-teal); }
.ps-cmd-icon { display: flex; align-items: center; padding-left: 16px; color: var(--ps-ink-soft); }
.ps-cmd-form input {
  flex: 1; min-width: 0; border: 0; outline: none;
  font: inherit; font-size: 16px; padding: 16px 12px; background: transparent; color: var(--ps-ink);
}
.ps-cmd-btn {
  border: 0; cursor: pointer; background: var(--ps-coral); color: #fff;
  font: inherit; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; gap: 8px; padding: 0 26px;
}
.ps-cmd-btn:hover { background: var(--ps-coral-dark); }
.ps-cmd-btn:disabled { opacity: 0.65; cursor: wait; }
.ps-cmd-note { font-size: 13px; color: var(--ps-ink-soft); margin: 10px 2px 0; }
.ps-noscript {
  background: #fff8e6; border: 1px solid #e8c96a; border-radius: 10px;
  padding: 12px 16px; font-size: 15px; margin-top: 14px;
}

/* ---------- Result box ---------- */
.ps-result { margin-top: 18px; }
.ps-result-card {
  background: var(--ps-card); border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius); padding: 20px 22px;
}
.ps-result-card h3 { margin-bottom: 4px; }
.ps-result-card .ps-result-title { color: var(--ps-ink-soft); font-size: 15px; }
.ps-result-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ps-result-list li {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--ps-line); border-radius: 10px; padding: 12px 14px;
}
.ps-result-list .ps-kind {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: #e6f2f0; color: var(--ps-teal); border-radius: 6px; padding: 4px 8px;
}
.ps-result-list .ps-label { flex: 1; min-width: 140px; font-weight: 600; }
.ps-alert {
  background: #fdf0ec; border: 1px solid #f2b8a6; border-radius: var(--ps-radius);
  padding: 18px 20px; margin-top: 14px;
}
.ps-alert p { margin-bottom: 6px; }
.ps-alert p:last-child { margin-bottom: 0; }
.ps-spinner {
  width: 18px; height: 18px; border: 3px solid #ffd9cf; border-top-color: #fff;
  border-radius: 50%; display: inline-block;
  animation: ps-spin 0.8s linear infinite; vertical-align: -3px;
}
@keyframes ps-spin { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.ps-btn {
  display: inline-block; font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 10px; border: 0; cursor: pointer;
}
.ps-btn:hover { text-decoration: none; }
.ps-btn-coral { background: var(--ps-coral); color: #fff; }
.ps-btn-coral:hover { background: var(--ps-coral-dark); }
.ps-btn-teal { background: var(--ps-teal); color: #fff; }
.ps-btn-teal:hover { background: var(--ps-teal-dark); }
.ps-btn-ghost {
  background: transparent; color: var(--ps-teal);
  border: 2px solid var(--ps-teal);
}
.ps-btn-ghost:hover { background: #e6f2f0; }

/* ---------- Sections: alternating split rows ---------- */
.ps-section { padding: 56px 0; }
.ps-section-title { margin-bottom: 10px; }
.ps-section-intro { color: var(--ps-ink-soft); font-size: 18px; max-width: 680px; }
.ps-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.ps-split-flip .ps-split-copy { order: 2; }
.ps-split-flip .ps-split-media { order: 1; }
.ps-split-copy h2 { margin-bottom: 12px; }
.ps-split-copy p { color: var(--ps-ink-soft); }
.ps-split-media {
  background: var(--ps-card); border: 1px solid var(--ps-line);
  border-radius: 18px; padding: 28px;
}
.ps-split-media .ps-media-num {
  font-family: "Fraunces", Georgia, serif; font-size: 56px; font-weight: 700;
  color: var(--ps-teal); line-height: 1;
}
.ps-split-media h3 { margin-top: 10px; }
.ps-split-media p:last-child { margin-bottom: 0; }

/* Steps */
.ps-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.ps-step {
  background: var(--ps-card); border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius); padding: 24px;
}
.ps-step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ps-teal);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 20px;
  margin-bottom: 14px;
}
.ps-step h3 { margin-bottom: 6px; }
.ps-step p { color: var(--ps-ink-soft); margin-bottom: 0; }

/* Comparison / feature table */
.ps-table-wrap { overflow-x: auto; margin-top: 26px; }
.ps-table {
  width: 100%; border-collapse: collapse; background: var(--ps-card);
  border: 1px solid var(--ps-line); border-radius: var(--ps-radius); overflow: hidden;
}
.ps-table th, .ps-table td {
  text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--ps-line);
  font-size: 15px; vertical-align: top;
}
.ps-table tr:last-child th, .ps-table tr:last-child td { border-bottom: 0; }
.ps-table thead th { background: var(--ps-ink); color: #fff; font-size: 15px; }
.ps-table tbody th { font-weight: 700; width: 34%; }
.ps-yes { color: var(--ps-teal); font-weight: 700; }
.ps-no { color: var(--ps-coral-dark); font-weight: 700; }

/* Device cards */
.ps-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.ps-card {
  background: var(--ps-card); border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius); padding: 24px;
}
.ps-card h3 { margin-bottom: 6px; }
.ps-card p { color: var(--ps-ink-soft); margin-bottom: 0; }
.ps-card .ps-card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #e6f2f0;
  color: var(--ps-teal); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* Who-uses list */
.ps-uses { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; margin-top: 26px; }
.ps-use { display: flex; gap: 12px; align-items: flex-start; }
.ps-use svg { flex: none; margin-top: 4px; color: var(--ps-coral); }
.ps-use p { margin-bottom: 0; color: var(--ps-ink-soft); }
.ps-use b { color: var(--ps-ink); }

/* Tutorial screenshots */
.ps-shots { align-items: start; }
.ps-shot { margin: 0; }
.ps-shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--ps-line); border-radius: 12px;
}
.ps-shot figcaption { font-size: 14px; color: var(--ps-ink-soft); margin-top: 10px; }
.ps-shot figcaption b { color: var(--ps-ink); }
.ps-credit { font-size: 13px; color: var(--ps-ink-soft); margin-top: 18px; }

/* ---------- FAQ: two-column accordion ---------- */
.ps-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 26px; }
.ps-faq {
  background: var(--ps-card); border: 1px solid var(--ps-line);
  border-radius: 12px; padding: 0 20px;
}
.ps-faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 16px;
  padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq-plus { color: var(--ps-teal); font-size: 24px; font-weight: 400; line-height: 1; flex: none; }
.ps-faq[open ] .ps-faq-plus { transform: rotate(45deg); }
.ps-faq p { color: var(--ps-ink-soft); padding: 0 0 18px; margin: 0; }

/* ---------- Legal / text pages ---------- */
.ps-text-page { padding: 56px 0 64px; }
.ps-text-page h1 { margin-bottom: 8px; }
.ps-text-page h2 { font-size: 26px; margin-top: 36px; }
.ps-text-page p, .ps-text-page li { color: var(--ps-ink-soft); }
.ps-text-page ul, .ps-text-page ol { padding-left: 22px; }
.ps-updated { color: var(--ps-ink-soft); font-size: 14px; margin-bottom: 26px; }

/* Contact form */
.ps-form { display: grid; gap: 16px; max-width: 560px; margin-top: 24px; }
.ps-form label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
.ps-form input, .ps-form select, .ps-form textarea {
  font: inherit; font-size: 16px; padding: 12px 14px;
  border: 2px solid var(--ps-line); border-radius: 10px; background: var(--ps-card);
  color: var(--ps-ink); width: 100%;
}
.ps-form input:focus, .ps-form select:focus, .ps-form textarea:focus {
  outline: none; border-color: var(--ps-teal);
}
.ps-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Results page ---------- */
.ps-results-page { padding-top: 48px; }
.ps-results-url { color: var(--ps-ink-soft); font-size: 15px; word-break: break-all; }
.ps-results-url span { color: var(--ps-ink); font-weight: 600; }
.ps-results-title { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 700; }
.ps-results-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
.ps-results-item {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--ps-card); border: 1px solid var(--ps-line);
  border-radius: 12px; padding: 16px 18px;
}
.ps-results-kind {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: #e6f2f0; color: var(--ps-teal); border-radius: 6px; padding: 4px 8px;
}
.ps-results-label { flex: 1; min-width: 140px; font-weight: 600; }
.ps-results-direct { font-size: 14px; }
.ps-results-hint { font-size: 15px; color: var(--ps-ink-soft); }

/* ---------- Footer: dark navy, 3 columns ---------- */
.ps-footer { background: var(--ps-navy-deep); color: #c3d0db; margin-top: 20px; }
.ps-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-top: 52px; padding-bottom: 40px;
}
.ps-footer h3 { color: #fff; font-size: 17px; font-family: "Inter", sans-serif; margin-bottom: 14px; }
.ps-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ps-footer a { color: #c3d0db; }
.ps-footer a:hover { color: #fff; }
.ps-footer-text { font-size: 15px; margin-top: 14px; }
.ps-brand-footer .ps-brand-name { color: #fff; }
.ps-footer-bottom {
  border-top: 1px solid #1d2f42; padding-top: 22px; padding-bottom: 26px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.ps-footer-bottom p { font-size: 13px; margin: 0; }

/* ---------- Playful touches (fun, not childish) ---------- */
@keyframes ps-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes ps-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes ps-pop {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.ps-hero { position: relative; overflow: hidden; }
.ps-hero-decor { position: absolute; inset: 0; pointer-events: none; }
.ps-hero-decor span { position: absolute; display: block; animation: ps-float 6s ease-in-out infinite; opacity: .9; }
.ps-hero-decor span:nth-child(1) { top: 12%; left: 4%; animation-duration: 7s; }
.ps-hero-decor span:nth-child(2) { top: 64%; left: 2%; animation-duration: 5.5s; animation-delay: .8s; }
.ps-hero-decor span:nth-child(3) { top: 8%; right: 5%; animation-duration: 6.5s; animation-delay: .4s; }
.ps-hero-decor span:nth-child(4) { bottom: 10%; right: 3%; animation-duration: 8s; animation-delay: 1.2s; }
.ps-hero-figure { animation: ps-bob 7s ease-in-out infinite; }
.ps-hero-figure img { transition: transform .35s ease, box-shadow .35s ease; }
.ps-hero-figure:hover img { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 18px 34px rgba(15,30,46,.16); }
.ps-card, .ps-step { transition: transform .25s ease, box-shadow .25s ease; }
.ps-card:hover, .ps-step:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(15,30,46,.10); }
.ps-cmd-btn { transition: transform .15s ease, background .15s ease; }
.ps-cmd-btn:hover:not(:disabled) { transform: translateY(-1px) scale(1.02); }
.ps-cmd-btn:active:not(:disabled) { transform: scale(.97); }
.ps-result-card.is-fresh { animation: ps-pop .45s ease both; }
.ps-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
@media (max-width: 860px) {
  .ps-hero-decor span:nth-child(2), .ps-hero-decor span:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-hero-decor span, .ps-hero-figure { animation: none; }
  .ps-card:hover, .ps-step:hover, .ps-hero-figure:hover img { transform: none; }
}
@media (max-width: 860px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .ps-hero { padding: 44px 0 40px; }
  .ps-hero-grid, .ps-split { grid-template-columns: 1fr; gap: 32px; }
  .ps-split-flip .ps-split-copy, .ps-split-flip .ps-split-media { order: 0; }
  .ps-steps, .ps-cards { grid-template-columns: 1fr; }
  .ps-faq-grid, .ps-uses { grid-template-columns: 1fr; }
  .ps-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ps-nav a { padding: 8px 8px; font-size: 14px; }
  .ps-cmd-btn { padding: 0 18px; }
  .ps-section { padding: 40px 0; }
}
