/* Plato Perfect Forms page. Builds on site.css (same tokens and components);
   everything here is namespaced pp-* or scoped to .plato-page so the Gopher Galaxy pages are untouched. */

/* ── Plato mark: the app's serif P, drawn as a mask so it takes any colour */
.pp-mark {
  display: inline-block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--amber);
  -webkit-mask: url("plato-mark.png") center / contain no-repeat;
  mask: url("plato-mark.png") center / contain no-repeat;
}

.pp-watermark { background: var(--text); animation: none; }
.pp-cta-mark {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 30px rgba(255,128,0,0.5));
}
.pp-footer-mark { width: 44px; height: 44px; }
.pp-footer-link { color: var(--amber-hi); text-decoration: none; }
.pp-footer-link:hover { text-decoration: underline; }

/* ── Hero phone: real screenshots from the app, rotating (7 slides, 3.5 s each) */
.plato-page .phone-screen { aspect-ratio: 1080 / 2205; }
.pp-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: ppSlide 24.5s calc(var(--i) * 3.5s) infinite;
}
.pp-slide img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 1;
  animation: none;
}
.pp-slide figcaption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 700 11px 'IBM Plex Mono', monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0C0E12;
  background: var(--amber);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(255,128,0,.45);
}
@keyframes ppSlide {
  0%    { opacity: 0; transform: translateX(12%) scale(.97); }
  2.5%  { opacity: 1; transform: none; }
  13.5% { opacity: 1; transform: none; }
  16%   { opacity: 0; transform: translateX(-12%) scale(.97); }
  100%  { opacity: 0; transform: translateX(-12%) scale(.97); }
}

/* ── Screenshots in the sections */
.pp-form-shot {
  display: block;
  width: calc(100% + 64px);
  max-width: none;
  height: 260px;
  margin: -40px -32px 28px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border);
  transition: transform .6s var(--ease-out);
}
.pp-form-card:hover .pp-form-shot { transform: scale(1.03); }
.pp-bulk-shot {
  display: block;
  width: 100%;
  height: 360px;
  margin-top: 28px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.pp-walk-pdf { margin: 0; }
.pp-walk-pdf figcaption, .pp-walk-phones + figcaption {
  margin-top: 10px;
  font: 500 11px 'IBM Plex Mono', monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pp-walk-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pp-walk-phones img { border-radius: 18px; aspect-ratio: 1080 / 1500; object-fit: cover; object-position: top; }

/* ── Bulk Create / Bulk Fill: two headline features */
.pp-bulk { background: var(--surface); }
.pp-bulk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pp-bulk-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--amber);
  border-radius: 4px;
  padding: 44px 40px 40px;
  box-shadow: 0 0 40px var(--amber-glow);
  transition: box-shadow .3s, transform .4s var(--ease-out), opacity .7s;
}
.pp-bulk-card:hover { box-shadow: 0 0 56px rgba(255,128,0,.28); }
.pp-bulk-card .buy-card-flag { position: static; display: inline-block; margin-bottom: 24px; }
.pp-bulk-ico { --ico-size: 44px; display: block; color: var(--amber); margin-bottom: 18px; }
.pp-bulk-title { font: clamp(30px, 3.4vw, 40px)/1.02 'Bebas Neue', sans-serif; letter-spacing: .03em; margin-bottom: 14px; }
.pp-bulk-lede { font-size: 17px; color: var(--text); margin-bottom: 22px; }
.pp-bulk-list { list-style: none; }
.pp-bulk-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}
.pp-bulk-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 19px;
  width: 10px; height: 10px;
  background: var(--amber);
  transform: rotate(45deg);
}

/* ── Feature extras + sprinkler walk-through */
.pp-extras {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.pp-extras li {
  font: 500 11px 'IBM Plex Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-hi);
  border: 1px solid var(--border);
  background: rgba(255,128,0,.05);
  padding: 8px 12px;
  border-radius: 2px;
}
.pp-walk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.pp-walk-also {
  margin-top: 28px;
  border-left: 3px solid var(--amber);
  padding: 4px 0 4px 18px;
}
.pp-walk-also p { color: var(--muted); margin-top: 6px; }
.pp-walk-shots { display: grid; gap: 16px; }
.pp-walk-shots:empty { display: none; }
.pp-walk-shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

/* ── Reports grid */
.pp-forms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pp-form-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px 36px;
  transition: border-color .3s, box-shadow .3s, transform .4s var(--ease-out), opacity .7s;
}
.pp-form-card:hover { border-color: var(--amber); box-shadow: 0 0 32px var(--amber-glow); }
.pp-form-ico { --ico-size: 40px; color: var(--amber); margin-bottom: 22px; }
.pp-form-code { font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: .2em; color: var(--amber); }
.pp-form-title { font: 30px/1.05 'Bebas Neue', sans-serif; letter-spacing: .04em; margin: 6px 0 12px; }
.pp-form-card p { color: var(--muted); font-size: 15px; }
.pp-forms-note {
  margin-top: 28px;
  font: 12px/1.6 'IBM Plex Mono', monospace;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ── Get the app (same frame as the home page's #buy) */
#get {
  background: var(--bg);
  padding: 110px 48px;
  overflow: hidden;
}
.pp-notice {
  max-width: 820px;
  margin: 40px auto 0;
  text-align: left;
  border: 1px solid var(--amber);
  border-left-width: 4px;
  background: rgba(255,128,0,.07);
  border-radius: 2px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.pp-notice a, .pp-faq-list a { color: var(--amber-hi); }

/* ── FAQ */
.pp-faq { background: var(--surface); }
.pp-faq-list { max-width: 860px; margin-top: 48px; border-top: 1px solid var(--border); }
.pp-faq-list details { border-bottom: 1px solid var(--border); }
.pp-faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  transition: color .2s;
}
.pp-faq-list summary::-webkit-details-marker { display: none; }
.pp-faq-list summary::after {
  content: '+';
  flex-shrink: 0;
  font: 400 26px/1 'IBM Plex Mono', monospace;
  color: var(--amber);
  transition: transform .3s var(--ease-out);
}
.pp-faq-list details[open] summary::after { transform: rotate(45deg); }
.pp-faq-list summary:hover { color: var(--amber); }
.pp-faq-list summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.pp-faq-list details p { color: var(--muted); padding: 0 48px 24px 0; max-width: 720px; }

@media (max-width: 860px) {
  .pp-forms-grid, .pp-bulk-grid, .pp-walk-grid { grid-template-columns: 1fr; }
  .pp-walk-grid { gap: 32px; }
  .pp-bulk-card { padding: 32px 22px 28px; }
  .pp-bulk-shot { height: 300px; }
  #get { padding: 80px 16px; }
  .pp-faq-list summary { font-size: 16px; }
  .pp-faq-list details p { padding-right: 0; }
}

/* ── Icons (CSS masks, same method as site.css; never inline <svg> in HTML) */
.ico-mic { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0M12 17v5M8 22h8'/%3E%3C/svg%3E"); }
.ico-micoff { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2l20 20M9 9v1a3 3 0 0 0 5.1 2.1M15 9.3V5a3 3 0 0 0-5.9-.7'/%3E%3Cpath d='M17 16.9A7 7 0 0 1 5 10M19 10a7 7 0 0 1-.1 1.2M12 17v5M8 22h8'/%3E%3C/svg%3E"); }
.ico-cloud { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 19H8a6 6 0 1 1 5.7-7.9A4.5 4.5 0 1 1 17.5 19z'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E"); }
.ico-list { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='18' rx='2'/%3E%3Cpath d='M9 2h6v4H9zM9 12l2 2 4-4M9 18h6'/%3E%3C/svg%3E"); }
.ico-undo { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h11a5 5 0 0 1 0 10h-3'/%3E%3C/svg%3E"); }
.ico-drop { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.7s-6 6.4-6 11.3a6 6 0 0 0 12 0c0-4.9-6-11.3-6-11.3z'/%3E%3C/svg%3E"); }
.ico-flame { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7h6M10 3h4l1 4M8 9a4 4 0 0 1 8 0v11a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2z'/%3E%3Cpath d='M16 9h2l2-3'/%3E%3C/svg%3E"); }
.ico-plus { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.5'/%3E%3Crect x='13' y='3' width='8' height='8' rx='1.5'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.5'/%3E%3Cpath d='M17 14v6M14 17h6'/%3E%3C/svg%3E"); }
.ico-fill { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16M4 10h16M4 15h9M4 20h9'/%3E%3Cpath d='m15 18 2 2 4-4'/%3E%3C/svg%3E"); }
.ico-camera { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E"); }
.ico-spark { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M18 6l-2.5 2.5M8.5 15.5 6 18'/%3E%3C/svg%3E"); }
.ico-repeat { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2l4 4-4 4'/%3E%3Cpath d='M3 11V9a3 3 0 0 1 3-3h15M7 22l-4-4 4-4'/%3E%3Cpath d='M21 13v2a3 3 0 0 1-3 3H3'/%3E%3C/svg%3E"); }
.ico-check { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }

@media (prefers-reduced-motion: reduce) {
  .pp-slide { animation: none; }
  .pp-slide:first-child { opacity: 1; }
}
