/* Shared refinements: retain PlaceOS typography, colour and square-edged layout. */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8d7fff; outline-offset: 4px; }
section[id], div[id], details[id] { scroll-margin-top: 90px; }
.btn-primary, .btn-secondary, .btn-ghost, .form-submit { min-height: 44px; font-size: 12px; line-height: 1.5; white-space: normal; text-align: center; justify-content: center; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-group > a { margin: 0; }
nav .nav-links { gap: 24px; }
nav .nav-link, nav .nav-dropdown-trigger { font-family: 'Martian Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
nav .nav-dropdown-menu { border-radius: 0; }
nav .nav-dropdown:not(.open) .nav-dropdown-menu { display: none; }
nav .nav-dropdown.open .nav-dropdown-menu { display: block; }
nav .nav-cta, nav .nav-mobile-toggle { border-radius: 0; }
nav .nav-dropdown-menu a { font-size: 14px; min-height: 44px; }
.form-label, .form-group label { font-size: 12px; line-height: 1.6; }
.form-input, .form-textarea, form select, form input, form textarea { font-size: 16px; max-width: 100%; }
.enquiry-notice { color: #9c203f; background: #fff4f7; border-left: 3px solid #9c203f; padding: 14px; font-size: 14px; line-height: 1.6; margin: 16px 0; }
.form-optional { margin: 20px 0; border-block: 1px solid var(--border, #ddd); padding: 14px 0; }
.form-optional summary { cursor: pointer; font-size: 14px; line-height: 1.6; }
.form-optional[open] summary { margin-bottom: 20px; }
.form-privacy, .form-context-note { font-size: 13px; line-height: 1.6; margin: 16px 0 0; color: var(--muted, #555); }
.form-privacy a { color: inherit; text-decoration: underline; }
.form-context-note button { background: none; border: none; text-decoration: underline; cursor: pointer; color: inherit; font: inherit; padding: 6px; }
[id^="turnstile-"] { transform: none !important; margin: 18px 0 !important; min-width: 0; }
.section-intro { font-size: 18px; line-height: 1.65; max-width: 760px; color: var(--muted); margin: -12px 0 32px; }
.build-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; border: 1px solid var(--border); background: #f8f7ff; padding: 48px; }
.build-panel h2 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 20px; }
.build-panel p { font-size: 17px; line-height: 1.7; color: var(--muted); margin-bottom: 24px; }
.build-options { display: grid; gap: 28px; }
.build-options h3 { font-family: 'DM Sans', sans-serif; font-size: 19px; margin-bottom: 8px; }
.build-options p { font-size: 16px; margin-bottom: 12px; }
.text-link { color: #5c49d0; font-size: 15px; font-weight: 500; text-underline-offset: 4px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { border: 1px solid var(--border); }
.project-card > img, .project-card > .screenshot-zoom img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: contain; background: #f5f5fa; border-bottom: 1px solid var(--border); }
.project-body { padding: 24px; }
.project-body .project-label { font-family: 'Martian Mono', monospace; text-transform: uppercase; font-size: 12px; color: #6553cc; margin-bottom: 16px; }
.project-body h3 { font-family: 'DM Serif Display', serif; font-size: 26px; line-height: 1.15; font-weight: 400; margin-bottom: 16px; }
.project-body p { font-size: 16px; line-height: 1.65; margin-bottom: 18px; color: var(--muted); }
.project-body details { margin-top: 16px; }
.project-body summary { cursor: pointer; font-size: 14px; padding-block: 8px; }
.integration-details { border: 1px solid var(--border); padding: 24px; margin-top: 32px; }
.integration-details summary { cursor: pointer; font-size: 18px; }
.integration-details p { font-size: 16px; line-height: 1.7; margin: 20px 0; }
.product-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.product-hero-layout h1 { font-size: clamp(40px, 4.5vw, 64px); }
.product-hero-preview { min-width: 0; margin: 0; border: 1px solid var(--border); padding: 12px; background: #f5f5fa; }
.product-hero-preview img { display: block; width: 100%; height: auto; }
.product-hero-preview figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 12px 4px 0; }
.screenshot-zoom { display: block; border: none; padding: 0; background: transparent; width: 100%; cursor: zoom-in; }
.screenshot-zoom img { display: block; }
.product-image-dialog { margin: auto; width: min(1200px, 94vw); max-height: 90dvh; padding: 16px; border: 1px solid #ccc; background: #fff; }
.product-image-dialog::backdrop { background: rgb(10 10 30 / 80%); }
.product-image-dialog > button { display: block; margin: 0 0 16px auto; padding: 12px 18px; background: #19192c; color: #fff; border: none; font: inherit; cursor: pointer; }
.product-image-dialog img { display: block; max-width: 100%; height: auto; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.calc-inputs label { display: block; font-size: 14px; line-height: 1.5; margin-bottom: 6px; }
.calc-inputs input, .calc-inputs select { width: 100%; min-width: 0; font: inherit; font-size: 16px; border: 1px solid #ccc; padding: 10px; background: #fff; color: #19192c; border-radius: 0; }
.calc-inputs .calc-wide { grid-column: 1 / -1; }
.calc-footnote { font-size: 13px !important; line-height: 1.6 !important; }
.calc-results { grid-template-columns: 1fr 1fr; }
#calc-enquire { margin-top: 20px; }
.calc-error { color: #9c203f; font-size: 14px; line-height: 1.5; }
.automation-card-top, .automation-core-top, .automation-meta, .automation-card-kicker { font-size: 12px; letter-spacing: .04em; }
.automation-hero-copy { align-items: center; }
.automation-hero-copy .hero-actions > .cta-group { display: contents; }
.automation-card { padding-bottom: 100px; }
.automation-outcome small { font-size: 11px; color: rgb(255 255 255 / 85%); }
.automation-outcome { font-size: 14px; }
.automation-output .automation-card-top, .automation-output .automation-card-kicker { color: rgb(255 255 255 / 85%); }
.automation-core-top { color: rgb(255 255 255 / 75%); }
.automation-tab { font-size: 12px; min-height: 44px; }
.automation-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.automation-next a { color: #5c49d0; text-underline-offset: 4px; }
.automation-paused .automation-packet, .automation-paused .automation-ring, .automation-paused .automation-core-scan { animation-play-state: paused; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .product-hero-layout, .build-panel { grid-template-columns: minmax(0, 1fr); }
  .build-panel { padding: 28px; gap: 28px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .product-hero-layout { gap: 28px; }
}
@media (max-width: 720px) {
  .cta-group, .hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-group > a, .hero-actions > a { width: 100%; margin: 0; }
  .hero.product-hero-layout { padding-top: 42px; }
  .hero.product-hero-layout .hero-desc { font-size: 16px; line-height: 1.65; margin-bottom: 24px; }
  .section-inner { padding-block: 44px; }
  .automation-hero-copy { gap: 18px; margin-bottom: 24px; }
  .automation-hero-copy h1 { font-size: clamp(38px, 10.5vw, 52px); }
  .automation-hero-desc { font-size: 16px; line-height: 1.55; margin-bottom: 18px; }
  .automation-stage { grid-template-rows: auto 20px auto 20px auto; min-height: 0; }
  .automation-card, .automation-core { min-height: 0; padding: 14px 16px; }
  .automation-card-kicker, .automation-signal, .automation-action-symbol, .automation-core-function, .automation-core-caption { display: none; }
  .automation-card h2 { font-size: 22px; margin-top: 10px; max-width: none; }
  .automation-value { font-size: 14px; margin-top: 6px; }
  .automation-meta { font-size: 12px; line-height: 1.5; }
  .automation-core { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px 14px; align-items: center; }
  .automation-core-top { grid-column: 1 / -1; }
  .automation-core-logo { font-size: 27px; margin: 0; justify-content: flex-start; }
  .automation-logic { margin: 0; font-size: 12px; }
  .automation-logic span { font-size: 12px; }
  .automation-outcome { position: static; margin-top: 12px; padding-top: 10px; }
  .automation-outcome small { display: none; }
  .automation-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; min-width: 0; }
  .automation-tab { min-width: 0; padding-inline: 6px; white-space: normal; letter-spacing: .02em; }
  .automation-tab span { display: none; }
  .automation-controls { align-items: flex-start; gap: 8px; }
  .automation-pause { font-size: 12px; min-height: 44px; }
  .automation-next { flex-direction: column; gap: 8px; }
  .product-showcase-image { height: 160px; }
  .product-showcase-content { padding: 24px; }
  .calc-inputs { grid-template-columns: minmax(0, 1fr); }
  .calc-results { grid-template-columns: 1fr; }
  #mobile-menu a { min-height: 44px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}
