.photo-guide-page {
  --photo-ink: #10244f;
  --photo-coral: #f05243;
  --photo-sun: #ffd302;
  --photo-paper: #fcf6e9;
  --photo-line: rgb(16 36 79 / 0.16);
  overflow: hidden;
  background: var(--photo-paper);
  color: var(--photo-ink);
}

.photo-guide-page [hidden] { display: none !important; }

.photo-guide-hero {
  position: relative;
  padding: clamp(60px, 9vw, 124px) 0 clamp(64px, 9vw, 118px);
  background:
    radial-gradient(circle at 76% 35%, rgb(255 211 2 / 0.3), transparent 22rem),
    linear-gradient(135deg, #fffaf0 0%, #f7edda 100%);
}

.photo-guide-hero::after {
  position: absolute;
  right: -9rem;
  bottom: -10rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: rgb(240 82 67 / 0.11);
  content: "";
}

.photo-guide-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
}

.photo-guide-kicker {
  display: inline-block;
  color: var(--photo-coral);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-guide-copy h1 {
  max-width: 760px;
  margin: 18px 0 24px;
  color: var(--photo-ink);
  font-size: clamp(3.1rem, 7.5vw, 7.8rem);
  line-height: 0.99;
  letter-spacing: -0.075em;
}

.photo-guide-copy h1 em {
  color: var(--photo-coral);
  font-style: normal;
}

.photo-guide-lead {
  max-width: 590px;
  margin: 0;
  color: rgb(16 36 79 / 0.72);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.6;
}

.photo-guide-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 25px;
  margin-top: 42px;
  color: rgb(16 36 79 / 0.72);
  font-size: 0.86rem;
  font-weight: 750;
}

.photo-guide-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.photo-guide-hero-points b {
  color: var(--photo-coral);
  font-family: var(--display);
  font-size: 0.65rem;
}

.photo-guide-hero-art {
  position: relative;
  min-height: 550px;
  transform: rotate(2deg);
}

.photo-guide-art-photo,
.photo-guide-art-guide {
  position: absolute;
  overflow: hidden;
  border: 9px solid #fff;
  box-shadow: 14px 17px 0 rgb(16 36 79 / 0.13);
}

.photo-guide-art-photo {
  width: 230px;
  height: 310px;
  background:
    radial-gradient(ellipse at 50% 32%, #f4d0b9 0 13%, transparent 13.5%),
    radial-gradient(ellipse at 50% 40%, #f4d0b9 0 18%, transparent 18.5%),
    linear-gradient(155deg, transparent 0 35%, #8c5e50 35.2% 75%, transparent 75.2%),
    linear-gradient(160deg, #efe7df 0 47%, #172341 47.2% 100%);
}

.photo-guide-art-photo::after {
  position: absolute;
  right: 23%;
  bottom: 14%;
  left: 23%;
  height: 8%;
  border-radius: 50%;
  background: rgb(144 68 63 / 0.32);
  content: "";
}

.photo-guide-art-photo span {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  background: #fff;
  color: var(--photo-ink);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photo-guide-art-photo--before {
  top: 32px;
  left: 0;
  transform: rotate(-8deg);
}

.photo-guide-art-photo--before::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(130deg, rgb(255 255 255 / 0.4), transparent 40%);
  content: "";
}

.photo-guide-art-guide {
  z-index: 2;
  top: 116px;
  left: 26%;
  display: grid;
  width: 218px;
  height: 290px;
  align-content: space-between;
  padding: 24px 20px;
  transform: rotate(3deg);
  background: #fffdf7;
}

.photo-guide-art-guide b {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.03;
}

.photo-guide-art-guide span {
  padding-top: 15px;
  border-top: 2px solid var(--photo-ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.55;
}

.photo-guide-art-photo--after {
  right: 0;
  bottom: 14px;
  width: 240px;
  height: 325px;
  transform: rotate(8deg);
  background:
    radial-gradient(ellipse at 50% 31%, #efd0bd 0 13%, transparent 13.5%),
    radial-gradient(ellipse at 50% 40%, #efd0bd 0 18%, transparent 18.5%),
    linear-gradient(150deg, transparent 0 30%, #372927 30.2% 76%, transparent 76.2%),
    linear-gradient(160deg, #ede8e2 0 47%, #151f3c 47.2% 100%);
}

.photo-guide-art-sticker {
  position: absolute;
  z-index: 3;
  right: 5%;
  top: 7px;
  display: grid;
  width: 100px;
  height: 100px;
  place-content: center;
  border-radius: 50%;
  background: var(--photo-sun);
  color: var(--photo-ink);
  font-family: var(--display);
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(11deg);
}

.photo-guide-workspace {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--photo-ink);
  color: #fff;
}

.photo-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: clamp(26px, 7vw, 100px);
}

.photo-guide-panel {
  padding: clamp(25px, 4vw, 48px);
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.06);
}

.photo-guide-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.photo-guide-panel h2,
.photo-guide-side-card h2,
.photo-guide-result-heading h2 {
  margin: 8px 0 0;
  color: inherit;
  font-size: clamp(1.65rem, 3vw, 3rem);
  letter-spacing: -0.045em;
}

.photo-guide-mode {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgb(255 255 255 / 0.2);
  color: var(--photo-sun);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.photo-guide-dropzone {
  display: grid;
  min-height: 220px;
  place-content: center;
  padding: 32px;
  border: 1px dashed rgb(255 255 255 / 0.45);
  background: rgb(255 255 255 / 0.04);
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.photo-guide-dropzone:hover,
.photo-guide-dropzone:focus-visible,
.photo-guide-dropzone.is-dragging {
  border-color: var(--photo-sun);
  background: rgb(255 211 2 / 0.08);
  outline: none;
  transform: translateY(-2px);
}

.photo-guide-dropzone-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  place-content: center;
  border: 1px solid var(--photo-sun);
  border-radius: 50%;
  color: var(--photo-sun);
  font-size: 1.8rem;
  font-weight: 300;
}

.photo-guide-dropzone strong {
  color: #fff;
  font-size: 1.05rem;
}

.photo-guide-dropzone > span:last-child {
  max-width: 330px;
  margin: 7px auto 0;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.84rem;
  line-height: 1.5;
}

.photo-guide-preview {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 0.18);
}

.photo-guide-preview img {
  width: 110px;
  height: 128px;
  object-fit: cover;
  background: #111a31;
}

.photo-guide-remove {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--photo-sun);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.photo-guide-field {
  display: grid;
  gap: 8px;
  margin-top: 25px;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.photo-guide-field select,
.photo-guide-field input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 0;
  background: #fff;
  color: var(--photo-ink);
  font: inherit;
}

.photo-guide-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 16px;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.79rem;
  line-height: 1.45;
}

.photo-guide-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--photo-sun);
}

.photo-guide-submit {
  width: 100%;
  margin-top: 26px;
}

.photo-guide-submit[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.photo-guide-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 9px;
  border: 2px solid rgb(16 36 79 / 0.3);
  border-top-color: var(--photo-ink);
  border-radius: 50%;
  animation: photo-guide-spin 800ms linear infinite;
}

.photo-guide-submit.is-loading .photo-guide-spinner {
  display: inline-block;
}

.photo-guide-submit.is-loading > span:first-child {
  opacity: 0.7;
}

.photo-guide-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--photo-sun);
  font-size: 0.85rem;
}

.photo-guide-status.is-error {
  color: #ffb2a8;
}

.photo-guide-side-card {
  padding-top: 12px;
}

.photo-guide-side-card h2 {
  max-width: 420px;
}

.photo-guide-side-card ul {
  display: grid;
  gap: 0;
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
}

.photo-guide-side-card li {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid rgb(255 255 255 / 0.18);
}

.photo-guide-side-card li b {
  color: var(--photo-sun);
}

.photo-guide-side-card li span {
  color: rgb(255 255 255 / 0.63);
  font-size: 0.86rem;
  line-height: 1.4;
}

.photo-guide-side-note {
  margin-top: 28px;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.8rem;
  line-height: 1.6;
}

.photo-guide-payment {
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
}

.photo-guide-payment p {
  margin: 9px 0 15px;
  color: rgb(255 255 255 / 0.65);
  font-size: 0.82rem;
  line-height: 1.5;
}

.photo-guide-payment .button {
  width: 100%;
}

.photo-guide-payment strong {
  display: block;
  margin: 10px 0;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
}

.photo-guide-payment a,
.photo-guide-check a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.photo-guide-legal { padding: 70px 0 110px; }
.photo-guide-legal article { max-width: 780px; }
.photo-guide-legal h1 { margin: 14px 0 30px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
.photo-guide-legal h2 { margin: 34px 0 10px; font-size: 1.35rem; }
.photo-guide-legal p { color: rgb(16 36 79 / 0.78); line-height: 1.7; }
.photo-guide-legal a { color: #a52c25; text-underline-offset: 3px; }
.photo-guide-legal nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--photo-line); }
.photo-guide-legal dt { margin-top: 16px; font-weight: 800; }
.photo-guide-legal dd { margin: 4px 0 0; }

.photo-guide-result {
  padding-top: clamp(70px, 10vw, 135px);
  padding-bottom: clamp(55px, 8vw, 100px);
}

.photo-guide-result-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.photo-guide-result-heading h2 {
  color: var(--photo-ink);
}

.photo-guide-result-heading p {
  margin: 15px 0 0;
  color: rgb(16 36 79 / 0.68);
}

.photo-guide-result-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.photo-guide-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-guide-compare figure {
  position: relative;
  min-width: 0;
  margin: 0;
  background: #e7ded3;
}

.photo-guide-compare figcaption {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  background: #fff;
  color: var(--photo-ink);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-guide-compare img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-guide-demo-note {
  margin: 14px 0 0;
  color: rgb(16 36 79 / 0.62);
  font-size: 0.8rem;
  line-height: 1.5;
}

.photo-guide-card {
  padding: clamp(24px, 4vw, 45px);
  border: 1px solid var(--photo-line);
  background: #fffdf7;
}

.photo-guide-card > h3 {
  margin: 0;
  color: var(--photo-ink);
  font-size: clamp(1.4rem, 2.7vw, 2.3rem);
  letter-spacing: -0.05em;
}

.photo-guide-card > p {
  color: rgb(16 36 79 / 0.68);
  line-height: 1.6;
}

.photo-guide-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.photo-guide-section {
  padding-top: 16px;
  border-top: 2px solid var(--photo-ink);
}

.photo-guide-section h4 {
  margin: 0 0 9px;
  color: var(--photo-coral);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.photo-guide-section ul,
.photo-guide-result-list ul {
  margin: 0;
  padding-left: 17px;
  color: rgb(16 36 79 / 0.73);
  font-size: 0.86rem;
  line-height: 1.6;
}

.photo-guide-result-list {
  margin-top: 32px;
  padding: 20px;
  background: #fff1bd;
}

.photo-guide-result-list h3 {
  margin: 0 0 9px;
  color: var(--photo-ink);
  font-size: 1.05rem;
}

.photo-guide-disclaimer {
  margin-bottom: 0;
  color: rgb(16 36 79 / 0.5) !important;
  font-size: 0.76rem;
}

.photo-guide-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: -14px 0 28px;
}

.photo-guide-result-actions button { cursor: pointer; }
.photo-guide-result-actions span { color: #53617b; font-size: 0.85rem; }
.photo-guide-result-actions [hidden],
.photo-guide-generated-poster[hidden],
.photo-guide-result-visual[hidden] { display: none !important; }

.photo-guide-poster {
  padding: clamp(22px, 4vw, 54px);
  border: 1px solid var(--photo-line);
  background: #fff;
  color: var(--photo-ink);
}

.photo-guide-poster-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--photo-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.photo-guide-poster-head strong { color: #a52c25; }

.photo-guide-poster-title {
  max-width: 700px;
  padding: 24px 0 30px;
}

.photo-guide-poster-title h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

.photo-guide-poster-title p { margin: 13px 0 0; color: #3c4963; line-height: 1.55; }

.photo-guide-generated-poster {
  max-width: 760px;
  margin: 0 auto 32px;
}

.photo-guide-generated-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f4f3f1;
}

.photo-guide-generated-canvas > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-guide-original-inset {
  position: absolute;
  left: 3.5%;
  bottom: 3.5%;
  width: 27%;
  aspect-ratio: 4 / 5;
  background: #fff;
  border: 3px solid #fff;
}

.photo-guide-original-inset img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-guide-original-inset span {
  position: absolute;
  inset: auto 0 0;
  padding: 6px 5px;
  background: #10244f;
  color: #fff;
  font-size: clamp(8px, 1.5vw, 12px);
  font-weight: 800;
  text-align: center;
}

.photo-guide-generated-poster figcaption {
  max-width: 64ch;
  margin-top: 11px;
  color: #39475f;
  font-size: 0.82rem;
  line-height: 1.45;
}

.photo-guide-poster.is-live .photo-guide-result-grid { display: block; }
.photo-guide-poster.is-live .photo-guide-card { max-width: none; }

.photo-guide-poster .photo-guide-result-grid {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3vw, 42px);
}

.photo-guide-poster .photo-guide-compare {
  grid-template-columns: minmax(0, 1fr) minmax(100px, 0.4fr);
  align-items: end;
}

.photo-guide-poster .photo-guide-compare figure:last-child { grid-column: 1; grid-row: 1; }
.photo-guide-poster .photo-guide-compare figure:first-child { grid-column: 2; grid-row: 1; }
.photo-guide-poster .photo-guide-compare img { aspect-ratio: 4 / 5; }

.photo-guide-poster .photo-guide-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.photo-guide-poster .photo-guide-card > h4 {
  margin: 0;
  font-size: 1.12rem;
}

.photo-guide-poster .photo-guide-sections { gap: 20px; margin-top: 18px; }
.photo-guide-poster .photo-guide-section { padding-top: 10px; border-top-width: 1px; }
.photo-guide-poster .photo-guide-section h4 { color: #a52c25; }

.photo-guide-poster-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr);
  align-items: end;
  gap: 28px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 2px solid var(--photo-ink);
}

.photo-guide-poster .photo-guide-result-list { margin: 0; padding: 0; background: none; }
.photo-guide-poster .photo-guide-result-list h4 { margin: 0 0 9px; font-size: 1rem; }
.photo-guide-poster .photo-guide-disclaimer { line-height: 1.5; }

.photo-guide-faq {
  padding-bottom: 100px;
}

.photo-guide-faq details {
  padding: 20px 0;
  border-top: 1px solid var(--photo-line);
}

.photo-guide-faq summary {
  color: var(--photo-ink);
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
}

.photo-guide-faq p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgb(16 36 79 / 0.68);
  line-height: 1.6;
}

@keyframes photo-guide-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 920px) {
  .photo-guide-hero-grid,
  .photo-guide-layout,
  .photo-guide-result-grid {
    grid-template-columns: 1fr;
  }

  .photo-guide-hero-art {
    width: min(100%, 540px);
    min-height: 475px;
    margin: 0 auto;
  }

  .photo-guide-side-card {
    padding-top: 0;
  }

  .photo-guide-poster .photo-guide-result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .photo-guide-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4.5rem);
  }

  .photo-guide-hero-art {
    min-height: 370px;
    transform: scale(0.78) rotate(2deg);
    transform-origin: top left;
    width: 128%;
    margin-bottom: -75px;
  }

  .photo-guide-panel-heading {
    display: grid;
  }

  .photo-guide-mode {
    justify-self: start;
  }

  .photo-guide-sections {
    grid-template-columns: 1fr;
  }

  .photo-guide-compare {
    gap: 6px;
  }

  .photo-guide-poster .photo-guide-compare { grid-template-columns: minmax(0, 1fr) minmax(90px, 0.42fr); }
  .photo-guide-original-inset { border-width: 2px; }
  .photo-guide-original-inset span { font-size: 8px; padding: 3px 2px; }
  .photo-guide-poster-foot { grid-template-columns: 1fr; }
}

@page { size: A3 portrait; margin: 12mm; }

@media print {
  .site-header,
  .site-footer,
  .photo-guide-hero,
  .photo-guide-workspace,
  .photo-guide-faq,
  .photo-guide-result-heading,
  .photo-guide-result-actions { display: none !important; }

  .photo-guide-page { overflow: visible; background: #fff; }
  .photo-guide-result { max-width: none; padding: 0 !important; }
  .photo-guide-poster { padding: 0; border: 0; break-inside: avoid; }
  .photo-guide-poster .photo-guide-result-grid { grid-template-columns: 34% minmax(0, 1fr); gap: 8mm; }
  .photo-guide-poster.is-live .photo-guide-result-grid { display: block; }
  .photo-guide-generated-poster { max-width: 165mm; break-inside: avoid; }
  .photo-guide-generated-poster figcaption { font-size: 8pt; }
  .photo-guide-poster .photo-guide-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4mm; }
  .photo-guide-poster .photo-guide-section ul { font-size: 9pt; line-height: 1.35; }
  .photo-guide-poster .photo-guide-compare figcaption { font-size: 7pt; }
  .photo-guide-poster .photo-guide-disclaimer { font-size: 8pt; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-guide-dropzone,
  .photo-guide-spinner {
    transition: none;
    animation: none;
  }
}
