:root {
  --bg: #F7F4ED;
  --surface: #FFFFFF;
  --surface-alt: #EFECE3;
  --text: #24211E;
  --muted: #5E5851;
  --border: #D8D2C8;
  --primary: #A6382B;
  --primary-hover: #8E2E22;
  --primary-soft: #FBF3F1;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(36, 33, 30, 0.06);
  --shadow-md: 0 12px 28px -6px rgba(36, 33, 30, 0.14);
  --font-display: "DM Serif Text", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.site-header img, .site-footer img, .photo-print-frame > img, .iphone-screen img, .info-prose img {
  display: block;
  max-width: 100%;
  height: auto;
}
.site-header a, .site-footer a, .breadcrumb a, .usecase-card, .guide-pill, .related-card {
  color: inherit;
}
.hero-stage-host {
  width: 100%;
  max-width: 388px;
}

button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--text);
  color: var(--surface);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 16px; }

.site-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
}
.brand-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.brand-icon svg, .brand-icon img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}
.brand-icon-sm { width: 22px; height: 22px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-text-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-text-link:hover { color: var(--text); }
.nav-code-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.nav-code-btn:hover { background: var(--surface-alt); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(166, 56, 43, 0.2);
  transition: background-color 140ms ease, transform 120ms ease;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.985); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.btn-secondary:hover { background: var(--surface-alt); border-color: #C7BFB2; }

/* Print frame */
.photo-print-frame {
  display: block;
  background: var(--surface);
  padding: 8px;
  border-radius: 4px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(36, 33, 30, 0.06);
}
.photo-print-frame img {
  width: 100%;
  border-radius: 2px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* Hero */
.hero-section { padding: 48px 0 40px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}
.hero-copy { order: 1; max-width: 500px; }
.hero-visual { order: 2; display: flex; justify-content: flex-end; }
.hero-print-trigger, .showcase-print-trigger {
  display: block;
  width: 100%;
  max-width: 360px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease;
}
.hero-print-trigger:hover, .showcase-print-trigger:hover { transform: translateY(-2px); }
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-accent { color: var(--primary); }
.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--text);
}
.hero-intro {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48ch;
}
.hero-actions { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-text-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-underline-offset: 4px;
}
.hero-text-link:hover { color: var(--text); }
.trust-line { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }

/* Code Banner */
.code-banner-section { padding-bottom: 12px; }
.code-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(239, 236, 227, 0.72);
}
.code-banner-left { display: flex; align-items: center; gap: 12px; }
.code-banner-left p { margin: 0; font-size: 14px; color: var(--muted); }
.code-banner-left strong { color: var(--text); }
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--primary);
  flex-shrink: 0;
}

/* Sections */
.section-block { padding: 56px 0; }
.section-rule { border: 0; border-top: 1px solid var(--border); margin: 0; }
.section-head { margin-bottom: 36px; }
.section-head-narrow { max-width: 680px; }
.section-head h2, .editorial-block h2, .faq-wrap h2, .related-heading, .final-cta-box h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--text);
}
.section-head p { margin: 8px 0 0; font-size: 16px; color: var(--muted); }

/* iPhone 18 Pro Hardware Mockups */
.steps-phone-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-phone-item { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.iphone-frame {
  position: relative;
  width: 100%;
  max-width: 248px;
  margin: 0 auto;
}
.iphone-btn {
  position: absolute;
  width: 2.5px;
  background: #524D47;
  border-radius: 2px;
  pointer-events: none;
}
.iphone-action { left: -2.5px; top: 82px; height: 18px; }
.iphone-vol-up { left: -2.5px; top: 116px; height: 34px; }
.iphone-vol-dn { left: -2.5px; top: 160px; height: 34px; }
.iphone-power { right: -2.5px; top: 134px; height: 52px; }
.iphone-cam { right: -1.5px; bottom: 124px; height: 36px; width: 1.5px; background: #68625B; }
.iphone-rim {
  border-radius: 42px;
  background: linear-gradient(180deg, #55504B 0%, #2B2825 50%, #433E39 100%);
  padding: 2px;
  box-shadow: 0 22px 42px -14px rgba(36, 33, 30, 0.32), 0 6px 14px -4px rgba(36, 33, 30, 0.14);
}
.iphone-bezel { border-radius: 40px; background: #0F0E0D; padding: 5.5px; }
.iphone-screen {
  border-radius: 34.5px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.iphone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
}
.iphone-status-txt { display: inline-block; transform: scale(0.8); transform-origin: center; }
.iphone-island { width: 42px; height: 12px; border-radius: 999px; background: #0F0E0D; }
.iphone-screen img { width: 100%; aspect-ratio: 480 / 965; object-fit: cover; object-position: top; }
.iphone-home-bar { display: flex; justify-content: center; padding: 5px 0 7px; background: var(--bg); }
.iphone-home-bar span { width: 76px; height: 3.5px; border-radius: 999px; background: rgba(36, 33, 30, 0.28); }
.step-copy { max-width: 280px; }
.step-tag {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.step-copy h3, .step-card h3, .benefit-card h3, .usecase-card h3, .showcase-card h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--text);
}
.step-copy p, .step-card p, .benefit-card p, .usecase-card p, .showcase-card p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* Grids */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.usecases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usecase-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(239, 236, 227, 0.6);
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.usecase-card:hover { border-color: var(--primary); background: var(--surface); }
.usecase-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.usecase-arrow { color: var(--muted); font-size: 16px; }
.usecase-card:hover h3, .usecase-card:hover .usecase-arrow { color: var(--primary); }

.guide-pills { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.guide-pills-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.guide-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}
.guide-pill:hover { border-color: var(--primary); color: var(--primary); }

/* Showcase & Steps */
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.showcase-card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.showcase-card figcaption { margin-top: 14px; max-width: 340px; }

.steps-cards-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(239, 236, 227, 0.58);
}

/* Editorial & FAQ */
.editorial-block { max-width: 70ch; }
.editorial-block p { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.editorial-block a { color: var(--primary); font-weight: 600; }

.faq-wrap { max-width: 760px; }
.faq-list { margin-top: 24px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { font-size: 18px; color: var(--muted); transition: transform 180ms ease; }
.faq-item[open] .faq-chevron { transform: rotate(45deg); }
.faq-item p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 68ch; }

/* Related */
.section-related { padding-top: 12px; }
.related-heading { font-size: 26px !important; margin-bottom: 16px !important; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
}
.related-card:hover { border-color: var(--primary); }
.related-title { font-family: var(--font-display); font-size: 18px; color: var(--text); }
.related-card:hover .related-title { color: var(--primary); }
.related-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Final CTA */
.final-cta-section { padding: 12px 0 64px; }
.final-cta-box {
  padding: 44px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(239, 236, 227, 0.72);
  text-align: center;
}
.final-cta-box p { margin: 12px auto 0; max-width: 48ch; font-size: 16px; color: var(--muted); }
.final-cta-actions { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* Info & Legal pages */
.info-shell, .not-found-shell { padding: 48px 0 64px; }
.info-container { width: 100%; max-width: 740px; margin: 0 auto; padding: 0 20px; }
.info-head { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.info-head h1, .not-found-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 400;
}
.info-subtitle { margin: 10px 0 0; font-size: 16px; color: var(--muted); max-width: 64ch; }
.info-prose { margin-top: 28px; max-width: 70ch; }
.info-prose h2 {
  margin: 32px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
}
.info-prose p, .info-prose li { font-size: 16px; line-height: 1.65; color: var(--muted); }
.info-prose strong { color: var(--text); }
.info-prose a { color: var(--primary); font-weight: 600; }
.info-prose code { background: var(--surface-alt); padding: 2px 6px; border-radius: 4px; font-size: 14px; color: var(--text); }
.not-found-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Full-bleed App Boot Shell (/photo, /invite, /join) */
.jop-app-main, .jop-studio-root { min-height: 100dvh; width: 100%; }
.jop-boot-shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.jop-boot-card {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.jop-boot-brand { justify-content: center; margin-bottom: 12px; }
.jop-boot-card h1 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.2; }
.jop-boot-sub { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.jop-boot-status { margin: 20px 0 0; font-size: 14px; font-weight: 500; color: var(--primary); }
.jop-fallback-form { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.jop-fallback-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}
.jop-boot-note { margin: 0; font-size: 13px; color: var(--primary); min-height: 18px; }
.jop-boot-links { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 24px;
}
.footer-brand .brand-name { font-size: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--text); }

/* Mobile */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-visual { order: 1; justify-content: center; }
  .hero-copy { order: 2; margin: 0 auto; }
  .hero-actions { align-items: center; width: 100%; }
  .hero-cta-row { justify-content: center; width: 100%; }
  .hero-print-trigger { max-width: 280px; }
  .steps-phone-grid, .benefits-grid, .steps-cards-grid, .related-grid { grid-template-columns: 1fr; }
  .usecases-grid, .showcase-grid { grid-template-columns: 1fr; }
  .step-phone-item, .showcase-card { align-items: center; text-align: center; }
}

@media (max-width: 640px) {
  .nav-text-link { display: none; }
  .hero-section { padding: 20px 0 28px; }
  .hero-copy h1 { font-size: 32px; }
  .hero-intro { font-size: 15px; }
  .btn-primary { width: 100%; }
  .code-banner { flex-direction: column; align-items: flex-start; }
  .code-banner .btn-secondary { width: 100%; }
  .section-block { padding: 40px 0; }
  .section-head h2, .editorial-block h2, .faq-wrap h2, .final-cta-box h2 { font-size: 28px; }
  .info-head h1, .not-found-card h1 { font-size: 30px; }
}
