:root {
  --paper: #fdfcf9;
  --ink: #191817;
  --muted: #6b6e73;
  --line: #e8e4dc;
  --gold: #df9429;
  --gold-hover: #cf8419;
  --cream: #faf5ec;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  background: var(--paper);
}

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
}

h1 {
  font-size: 68px;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

h2 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

p {
  color: var(--muted);
}

.section,
.header-inner,
.footer-main,
.footer-languages,
.cta-inner {
  width: min(1240px, 92%);
  margin: 0 auto;
}

.section {
  padding: 40px 0;
}

/* Header */
.site-header {
  height: 72px;
  background: var(--paper);
  border-bottom: 1px solid transparent;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  white-space: nowrap;
  color: var(--ink);
}

.brand img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.main-nav {
  display: flex;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
}

.main-nav a:hover {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.language {
  cursor: pointer;
  color: #555555;
}

.sign-in {
  color: var(--ink);
  font-weight: 500;
}

.sign-in:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
}

/* Hero & Tool Editor */
.hero {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 36px;
  min-height: 600px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 0 40px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-description {
  font-size: 18px;
  line-height: 1.45;
  margin: 16px 0 24px;
  color: #555555;
}

.editor {
  background: #ffffff;
  border: 1px solid #e7e2d8;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  min-width: 0;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #d5cdbf;
  border-radius: 8px;
  background: #fbf9f4;
  padding: 20px 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s;
}

.upload-zone:hover {
  border-color: var(--gold);
  background: #fdf6ec;
}

.upload-zone input {
  display: none;
}

.upload-zone .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  opacity: 0.85;
}

.upload-zone strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.upload-zone span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.preset-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.preset {
  border: 1px solid #e0dbd1;
  background: #ffffff;
  border-radius: 8px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s, background-color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset:hover {
  border-color: #c5bfb4;
  background: #faf8f5;
}

.preset .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.8;
}

.preset.selected {
  border-color: var(--gold);
  background: #fffcf5;
  box-shadow: 0 0 0 1px var(--gold);
  color: var(--ink);
  font-weight: 600;
}

.preset.selected .icon {
  opacity: 1;
  filter: invert(58%) sepia(85%) saturate(542%) hue-rotate(352deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  border: 1px solid #d58c22;
  border-radius: 8px;
  padding: 12px 20px;
  color: #1a1918;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.15s, filter 0.15s;
}

.button img,
.button .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.button:hover {
  background: var(--gold-hover);
}

.generate-button {
  width: 100%;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 600;
}

.microcopy {
  font-size: 12px;
  line-height: 1.4;
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
}

.editor-status {
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
}

.editor-status:empty {
  display: none;
}

.result-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.result-actions .button {
  width: 100%;
}

.text-button {
  font-size: 13px;
  color: var(--gold-hover);
  text-decoration: underline;
  padding: 4px;
}

.result-actions small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

/* Comparison photo */
.comparison {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  user-select: none;
  min-width: 0;
}

.hero-photo {
  height: 100%;
  min-height: 540px;
  border-radius: 12px;
}

.comparison > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--lighting, none);
}

.before-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  filter: brightness(0.60) saturate(0.88);
  pointer-events: none;
}

.before-shade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: var(--gold);
  pointer-events: none;
}

.comparison-line > span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #333333;
  border: 1px solid #dfd9ce;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
}

.hero-photo .comparison-line > span {
  top: 42%;
}

.comparison input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 2;
}

.photo-label {
  position: absolute;
  bottom: 14px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.before-label {
  left: 14px;
  background: rgba(20, 20, 20, 0.7);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.after-label {
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1918;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.face-box {
  position: absolute;
  left: 37%;
  top: 27%;
  width: 27%;
  height: 36%;
  border: 1.5px dashed rgba(255, 255, 255, 0.7);
  opacity: 0;
  border-radius: 12px;
  pointer-events: none;
  transition: opacity 0.2s;
}

.hero-photo.is-reviewing .face-box {
  opacity: 1;
}

/* Good moments / Examples */
.section-intro {
  font-size: 16px;
  margin-top: -8px;
  margin-bottom: 24px;
  color: var(--muted);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.example-grid figure {
  display: flex;
  flex-direction: column;
}

.example-grid .comparison {
  aspect-ratio: 1.55;
  border-radius: 10px;
}

.example-grid figcaption {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-top: 10px;
}

.example-description {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 24px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.step:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -22px;
  top: 18px;
  font-size: 30px;
  color: #b8b3a8;
  font-weight: 300;
  pointer-events: none;
}

.step-icon {
  width: 60px;
  height: 60px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-icon img,
.step-icon .icon {
  width: 26px;
  height: 26px;
  opacity: 0.9;
}

.step:nth-child(2) .step-icon img {
  filter: invert(58%) sepia(85%) saturate(542%) hue-rotate(352deg);
}

.step-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  display: inline-block;
  margin-right: 6px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: inline-block;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}

/* Six ways to find your light */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.mode-card {
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.mode-image {
  display: block;
  width: 100%;
  height: 210px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.mode-card.selected .mode-image {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.mode-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 3px;
}

.mode-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* Editorial Block */
.editorial {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 40px;
  align-items: center;
  padding: 50px 0;
}

.editorial-sun {
  width: 72px;
  height: 44px;
  margin-bottom: 12px;
  display: block;
}

.editorial h2 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin: 0;
}

.editorial-copy {
  border-left: none;
  padding-left: 0;
}

.editorial-copy p {
  font-size: 15px;
  line-height: 1.6;
  color: #403e3a;
  margin-bottom: 14px;
}

.editorial-copy p:last-child {
  margin-bottom: 0;
}

/* Look closer before you share */
.review-grid {
  display: grid;
  grid-template-columns: 54% 46%;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

.review .comparison {
  aspect-ratio: 2.1;
  border-radius: 10px;
  overflow: hidden;
}

.review-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.review-checks li > span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #5c6e46;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.review-checks h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.review-checks p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Pricing Band */
.pricing-band {
  background: var(--cream);
  padding: 50px 0;
  border-top: 1px solid #eee7db;
  border-bottom: 1px solid #eee7db;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.price-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e3ddd2;
  border-radius: 12px;
  padding: 32px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  min-width: 0;
}

.price-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.credits {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.price {
  font-size: 46px;
  font-weight: 700;
  font-family: var(--serif);
  line-height: 1;
  color: var(--ink);
  margin: 14px 0 4px;
  letter-spacing: -0.5px;
}

.price-card small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.home-page .price-card small {
  display: none;
}

.price-card .button {
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
}

.price-card .button.outline {
  background: #f7f6f3;
  border: 1px solid #d8d2c6;
  color: #222222;
}

.price-card .button.outline:hover {
  background: #edeae3;
}

.price-card.recommended {
  background: #1e2225;
  color: #ffffff;
  border: 1px solid #1e2225;
  padding: 0 0 24px;
  overflow: hidden;
}

.price-card.recommended .recommend-label {
  display: block;
  background: var(--gold);
  color: #1a1918;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 6px 0;
}

.price-card.recommended > div {
  padding: 24px 26px 0;
}

.price-card.recommended h3 {
  color: #ffffff;
}

.price-card.recommended .credits {
  color: #9da2a8;
}

.price-card.recommended .price {
  color: #ffffff;
}

.price-card.recommended small {
  color: #8c9298;
}

.price-card.recommended .button {
  background: var(--gold);
  color: #1a1918;
  border: 1px solid #d58c22;
  margin: 22px 26px 0;
  width: calc(100% - 52px);
}

.pricing-notes {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 20px;
  align-items: start;
}

.faq-grid details:nth-child(1) { grid-column: 1; grid-row: 1; }
.faq-grid details:nth-child(2) { grid-column: 1; grid-row: 2; }
.faq-grid details:nth-child(3) { grid-column: 2; grid-row: 1; }
.faq-grid details:nth-child(4) { grid-column: 2; grid-row: 2; }
.faq-grid details:nth-child(5) { grid-column: 2; grid-row: 3; }

.faq details {
  background: #ffffff;
  border: 1px solid #e7e2d8;
  border-radius: 8px;
  padding: 16px 20px;
  transition: border-color 0.15s;
}

.faq details[open] {
  border-color: #d6cfbf;
}

.faq summary {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "⌄";
  font-size: 18px;
  color: #888888;
  font-weight: 600;
  margin-left: 10px;
}

.faq details[open] summary::after {
  content: "⌃";
}

.faq details p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 10px;
}

/* Pre-footer CTA banner */
.cta {
  background: #faf1e0 url("../img/sun-decoration.svg") right 50px bottom -40px / 320px no-repeat;
  border-top: 1px solid #ebd9b6;
  border-bottom: 1px solid #ebd9b6;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding: 48px 0;
  margin: 40px 0 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(1240px, 92%);
  margin: 0 auto;
}

.cta h2 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

.cta p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
}

.cta .button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.cta small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* Footer */
.site-footer {
  padding: 32px 0 36px;
  border-top: 1px solid #f0ebe2;
  margin-top: 0;
  background: var(--paper);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-main .brand {
  font-size: 22px;
}

.footer-main .brand img {
  width: 26px;
  height: 26px;
}

.footer-main nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: #555555;
  align-items: center;
}

.footer-main nav a:hover,
.footer-main nav button:hover {
  color: var(--gold);
}

.footer-languages {
  display: none;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid #f0ebe2;
  margin-top: 18px;
  padding-top: 14px;
  font-size: 12px;
  color: #888888;
}

.footer-languages span {
  color: #999999;
}

/* SEO Landing specific */
.wide-detail {
  padding: 10px 0 20px;
}

.wide-detail .comparison {
  aspect-ratio: 3.2;
  border-radius: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.feature-grid article {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-grid article + article {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.feature-grid .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.feature-grid h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.feature-grid p {
  font-size: 14px;
  color: #444444;
  line-height: 1.45;
}

.feature-grid p + p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.related-tools {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
  font-size: 14px;
  flex-wrap: wrap;
}

.related-tools span {
  font-weight: 600;
  color: var(--ink);
  margin-right: 4px;
}

.related-tools a {
  color: #bb7616;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.related-tools a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* Pricing Page specific */
.page-heading {
  text-align: center;
  padding: 50px 0 40px;
}

.eyebrow {
  display: block;
  color: #b07821;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-heading h1 {
  font-size: 52px;
  line-height: 1.08;
}

.page-heading p {
  font-size: 18px;
  margin-top: 14px;
}

.free-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 48px 0;
}

.free-preview .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  filter: invert(58%) sepia(85%) saturate(542%) hue-rotate(352deg);
}

.free-preview h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.free-preview p {
  font-size: 16px;
  line-height: 1.5;
}

.free-preview .button {
  padding: 13px 24px;
  white-space: nowrap;
}

/* Account Page specific */
.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 28px;
}

.account-heading h1 {
  font-size: 48px;
  margin-top: 4px;
}

.account-heading p {
  font-size: 17px;
  margin-top: 6px;
}

.account-balance {
  border: 1px solid #ebdcc5;
  background: var(--cream);
  border-radius: 12px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.account-balance > div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.balance-icon {
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.balance-icon .icon {
  width: 28px;
  height: 28px;
}

.account-balance h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  margin: 4px 0 2px;
}

.account-balance h2 span {
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

.account-balance p {
  font-size: 13px;
}

.account-balance .button {
  background: #f7f6f3;
  border: 1px solid #d8d2c6;
  color: #222222;
  font-weight: 600;
  padding: 10px 18px;
}

.account-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 30px;
  margin: 32px 0 24px;
}

.account-tabs button {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}

.account-tabs [aria-selected="true"] {
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-heading h2 {
  font-size: 24px;
  margin: 0;
}

.panel-heading p {
  font-size: 13px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.history-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.history-card .comparison {
  aspect-ratio: 1.55;
  border-radius: 0;
}

.history-card-copy {
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  align-items: center;
}

.history-card-copy h3 {
  font-size: 17px;
  font-weight: 600;
}

.history-card-copy small {
  color: var(--muted);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

.status-pill {
  background: #f0f2e8;
  color: #556235;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px 16px;
  font-size: 13px;
  color: var(--gold-hover);
}

.history-actions a {
  font-weight: 500;
}

.history-actions a:hover {
  text-decoration: underline;
}

.history-actions .delete-photo {
  margin-left: auto;
  font-size: 16px;
  color: #888888;
}

.history-note {
  font-size: 13px;
  margin-top: 20px;
  color: var(--muted);
}

.purchase-row {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.purchase-row button,
.delete-account button {
  text-decoration: underline;
}

#settings-form {
  max-width: 440px;
  margin-top: 20px;
}

#settings-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #444444;
}

#settings-form input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 16px;
}

.delete-account {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.delete-account p {
  margin: 6px 0;
}

/* Dialog */
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  width: min(460px, 90vw);
  padding: 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

dialog::backdrop {
  background: rgba(20, 20, 20, 0.4);
}

dialog h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

dialog p {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 22px;
  color: #888888;
}

[hidden] {
  display: none !important;
}

/* ============================================================
   PHP templates: parts the static pages did not have
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

#tool {
  scroll-margin-top: 8px;
}

/* Short pages (404, sign-in) keep the footer at the bottom of the screen. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main {
  flex: 1 0 auto;
}

.header-credits {
  color: #555555;
  white-space: nowrap;
}

.header-actions form {
  margin: 0;
}

.header-actions button.sign-in {
  padding: 0;
}

/* Sign in / Log out in the main menu shows only in the phone menu (the header has it on desktop). */
.main-nav .nav-account {
  display: none;
}

.main-nav form {
  margin: 0;
}

.main-nav button {
  padding: 0;
  font-weight: 500;
}

/* CTA under the examples and How it works blocks: leads to #tool */
.block-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.block-cta .button {
  padding: 11px 22px;
}

.block-cta small {
  font-size: 13px;
  color: var(--muted);
}

.arrow-link {
  color: #bb7616;
  font-weight: 600;
  font-size: 15px;
}

.arrow-link:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

.moments .block-cta {
  justify-content: center;
}

/* Catalogue badges in the footer (raw HTML, REQUIREMENTS 6.3.4) */
.footer-badges {
  width: min(1240px, 92%);
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid #f0ebe2;
}

.badge-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
}

.badge-item img {
  max-height: 54px;
  width: auto;
}

/* Simple pages: 404, messages, pages being written, sign-in */
.simple-page {
  text-align: center;
  padding: 72px 0 80px;
  max-width: 640px;
}

.simple-page h1 {
  font-size: 52px;
  line-height: 1.08;
}

.simple-page p {
  font-size: 17px;
  margin-top: 14px;
}

.simple-page .button {
  margin-top: 28px;
}

.simple-page .muted {
  font-size: 13px;
  margin-top: 10px;
}

.simple-page-sun {
  width: 72px;
  height: 44px;
  margin: 0 auto 16px;
}

.auth-page {
  display: flex;
  justify-content: center;
  padding: 48px 0 64px;
}

.auth-card {
  width: min(420px, 100%);
  background: #ffffff;
  border: 1px solid #e7e2d8;
  border-radius: 12px;
  padding: 32px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.auth-card h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

.plain-form .field {
  margin-bottom: 16px;
}

.plain-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.plain-form .field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.plain-form input[type="text"],
.plain-form input[type="email"],
.plain-form input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8d2c6;
  border-radius: 8px;
  background: #ffffff;
  font-size: 15px;
}

.plain-form input:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(223, 148, 41, 0.25);
  outline-offset: 0;
}

.plain-form .has-error input {
  border-color: #b3261e;
}

.plain-form .button {
  width: 100%;
  margin-top: 4px;
}

.field-hint,
.field-error {
  font-size: 12px;
  margin-top: 5px;
}

.field-error,
.form-error {
  color: #b3261e;
}

.form-error,
.form-notice {
  font-size: 14px;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.form-error {
  background: #fdf0ee;
  border: 1px solid #f1c9c4;
}

.form-notice {
  color: #3f4f2c;
  background: #f0f2e8;
  border: 1px solid #d9dfc6;
}

.text-link {
  color: #bb7616;
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
}

.skip-link:focus {
  left: 8px;
}

/* The tool at work (public/js/tool.js): drop target, progress, result, full screen */
.upload-zone.is-dragover {
  border-color: var(--gold);
  background: #fdf3e2;
}

.upload-zone.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.tool-progress {
  padding: 4px 0 2px;
}

.tool-progress-bar {
  height: 8px;
  border-radius: 4px;
  background: #f1ebe0;
  overflow: hidden;
}

.tool-progress-bar span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.35s ease;
}

.tool-stages {
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin: 9px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

.tool-stages li.is-active {
  color: var(--ink);
  font-weight: 600;
}

.tool-stages li.is-done {
  color: #bb7616;
}

.tool-stages li.is-done::before {
  content: "✓ ";
}

.tool-progress-note {
  font-size: 13px;
  text-align: center;
  margin-top: 6px;
  color: var(--ink);
}

.tool-progress-note:empty {
  display: none;
}

.editor-status.is-error {
  color: #b3261e;
}

.editor-status.is-info {
  color: var(--ink);
  font-weight: 500;
}

.result-actions .signup-button {
  padding: 13px 18px;
  font-size: 16px;
}

/* The visitor's own photo: shown whole, without the CSS hint of a preset */
.hero-photo.is-user {
  background: var(--cream);
}

.hero-photo.is-user > img,
.hero-photo.is-user .before-shade img {
  object-fit: contain;
}

/* The photo fills the box the layout gives (a tall portrait must not stretch the first screen) */
.hero-photo.is-user > img {
  position: absolute;
  inset: 0;
  filter: none;
}

.hero-photo.is-user .face-box,
.hero-photo.is-single .before-shade,
.hero-photo.is-single .photo-label,
.hero-photo.is-single .comparison-line,
.hero-photo.is-single input {
  display: none;
}

/* The real before (the uploaded photo) needs no darkening */
.hero-photo.is-result .before-shade,
.viewer-comparison .before-shade {
  filter: none;
}

.hero-photo.is-working::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 248, 232, 0.12) 30%, rgba(255, 244, 220, 0.7) 50%, rgba(255, 248, 232, 0.12) 70%);
  background-size: 250% 100%;
  animation: tool-sheen 1.6s linear infinite;
  pointer-events: none;
}

@keyframes tool-sheen {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo.is-working::after {
    animation: none;
    background: rgba(255, 248, 232, 0.25);
  }
}

.photo-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333333;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.photo-expand:hover {
  color: var(--gold-hover);
}

dialog.photo-viewer {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #111111;
}

dialog.photo-viewer::backdrop {
  background: #111111;
}

.viewer-comparison {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.viewer-comparison > img,
.viewer-comparison .before-shade img {
  object-fit: contain;
}

.viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1918;
  font-size: 26px;
  line-height: 1;
}

/* Sign-in and sign-up: pages and the modal over the result (REQUIREMENTS 2: all in one screen) */
.auth-page .auth-card h1 {
  margin-bottom: 6px;
}

.auth-lead {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.google-button {
  width: 100%;
  background: #ffffff;
  border-color: #d8d2c6;
  color: var(--ink);
}

.google-button:hover {
  background: #faf7f1;
  border-color: #c9c1b2;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--muted);
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.auth-form .field {
  margin-bottom: 12px;
}

.auth-form .button {
  margin-top: 6px;
}

.field-aside {
  font-size: 13px;
  color: #bb7616;
}

.field-aside:hover,
.auth-switch a:hover,
.auth-legal a:hover {
  color: var(--gold-hover);
}

.auth-legal {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.auth-legal a {
  color: var(--ink);
  text-decoration: underline;
}

.auth-switch {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

.auth-switch a {
  color: #bb7616;
  font-weight: 600;
}

dialog.auth-modal {
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 26px 28px 22px;
  overflow-y: auto;
}

dialog.auth-modal h2 {
  font-size: 30px;
  margin-bottom: 4px;
  padding-right: 24px;
}

dialog.auth-modal p.auth-lead {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 16px;
}

dialog.auth-modal p.auth-legal,
dialog.auth-modal p.auth-switch,
dialog.auth-modal p.auth-or {
  margin-bottom: 0;
}

dialog.auth-modal .form-error {
  margin-bottom: 12px;
}

dialog.auth-modal .field-hint,
dialog.auth-modal .field-error {
  margin-bottom: 0;
  line-height: 1.4;
}

.auth-form[aria-busy="true"] .button {
  opacity: 0.7;
  cursor: progress;
}

/* Download of the full-size result (signed in) */
.download-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.download-actions .download-button {
  flex: 1;
}

.result-actions .download-actions .download-png {
  width: auto;
  background: #ffffff;
  border-color: #d8d2c6;
}

.result-actions .download-actions .download-png:hover {
  background: #faf7f1;
}

/* ============================================================
   RESPONSIVE / PHONE LAYOUT (width <= 700px, target 390px)
   ============================================================ */
@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body {
    font-size: 13px;
    line-height: 1.45;
  }

  .section,
  .header-inner,
  .footer-main,
  .footer-languages,
  .cta-inner,
  .hero-copy {
    width: calc(100% - 32px);
    max-width: 358px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .section {
    padding: 24px 0;
  }

  /* Header mobile */
  .site-header {
    height: 54px;
    background: transparent;
    border-bottom: none;
  }

  .brand {
    font-size: 20px;
    letter-spacing: -0.5px;
  }

  .brand img {
    width: 24px;
    height: 24px;
    margin-right: 6px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
  }

  .sign-in {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 20px;
    line-height: 1;
    padding: 2px 4px;
    color: var(--ink);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 100;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* Headings mobile */
  h1 {
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -1px;
  }

  h2 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
  }

  h3 {
    font-size: 16px;
  }

  /* Hero mobile */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 16px 0 24px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0 16px;
  }

  .editor {
    padding: 14px;
    box-sizing: border-box;
  }

  .upload-zone {
    padding: 14px 10px;
  }

  .upload-zone .icon {
    width: 24px;
    height: 24px;
  }

  .upload-zone strong {
    font-size: 15px;
  }

  .upload-zone span {
    font-size: 11px;
  }

  .preset-controls {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 10px 0;
  }

  .preset {
    padding: 8px 8px;
    font-size: 12px;
    gap: 6px;
  }

  .preset .icon {
    width: 14px;
    height: 14px;
  }

  .button {
    font-size: 14px;
    padding: 10px 14px;
  }

  .generate-button {
    font-size: 16px;
    padding: 13px 16px;
  }

  .microcopy {
    font-size: 11px;
    margin-top: 8px;
  }

  .hero-photo {
    width: calc(100% - 32px);
    max-width: 358px;
    margin: 0 auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 1.08;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .hero-photo .comparison-line > span {
    top: 45%;
  }

  .hero-photo.is-user {
    aspect-ratio: var(--photo-ratio, 1.08);
  }

  /* Good moments mobile */
  .example-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .example-grid figure:last-child {
    display: none;
  }

  .example-grid .comparison {
    aspect-ratio: 1.45;
    border-radius: 8px;
  }

  .example-grid figcaption {
    font-size: 12px;
    margin-top: 6px;
  }

  .example-description {
    font-size: 11px;
  }

  /* Steps mobile */
  .steps {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .step {
    padding-bottom: 0;
    border-bottom: 0;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 0;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .step-icon {
    width: 44px;
    height: 44px;
  }

  .step-icon img,
  .step-icon .icon {
    width: 20px;
    height: 20px;
  }

  .step-number {
    font-size: 16px;
  }

  .step h3 {
    font-size: 16px;
  }

  .step p {
    font-size: 12px;
    margin-top: 3px;
    line-height: 1.4;
  }

  /* Modes mobile */
  .mode-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
    margin-top: 14px;
  }

  .mode-image {
    height: 90px;
    border-radius: 6px;
  }

  .mode-card strong {
    font-size: 11px;
    margin: 6px 0 2px;
  }

  .mode-card span {
    font-size: 10px;
    line-height: 1.25;
  }

  /* Editorial mobile */
  .editorial {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 0;
  }

  .editorial-sun {
    width: 54px;
    height: 32px;
    margin-bottom: 8px;
  }

  .editorial h2 {
    font-size: 32px;
    line-height: 1.08;
  }

  .editorial-copy {
    border-left: 0;
    padding-left: 0;
  }

  .editorial-copy p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  /* Review mobile */
  .review-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 14px;
  }

  .review .comparison {
    aspect-ratio: 1.95;
    border-radius: 10px;
  }

  .review-checks {
    gap: 12px;
  }

  .review-checks li {
    gap: 10px;
  }

  .review-checks li > span {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .review-checks h3 {
    font-size: 15px;
  }

  .review-checks p {
    font-size: 12px;
  }

  /* Pricing band mobile */
  .pricing-band {
    padding: 28px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .price-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .price-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    box-sizing: border-box;
  }

  .price-card h3 {
    font-size: 18px;
  }

  .credits {
    font-size: 13px;
    margin-top: 2px;
  }

  .price {
    font-size: 30px;
    margin: 4px 0 0;
  }

  .price-card .button {
    width: auto;
    min-width: 120px;
    margin: 0;
    padding: 9px 14px;
    font-size: 13px;
  }

  .price-card.recommended {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    padding: 0;
    align-items: center;
  }

  .price-card.recommended .recommend-label {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 5px 0;
    font-size: 12px;
  }

  .price-card.recommended > div {
    grid-column: 1;
    grid-row: 2;
    padding: 14px 0 14px 16px;
  }

  .price-card.recommended .button {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin: 0 16px 0 0;
    width: auto;
    min-width: 120px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .pricing-notes {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 11px;
    margin-top: 14px;
  }

  /* FAQ mobile */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .faq-grid details {
    grid-column: auto !important;
    grid-row: auto !important;
    padding: 12px 14px;
  }

  .faq summary {
    font-size: 14px;
  }

  .faq details p {
    font-size: 12px;
    margin-top: 6px;
  }

  /* Pre-footer CTA mobile */
  .cta {
    background-image: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 28px 0;
    margin: 20px 0 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .cta-inner {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .cta h2 {
    font-size: 26px;
    line-height: 1.15;
  }

  .cta p {
    font-size: 13px;
  }

  .cta .button {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
  }

  /* Footer mobile */
  .site-footer {
    padding: 24px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-main {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    align-items: center;
  }

  .footer-main nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    font-size: 12px;
  }

  .footer-languages {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 11px;
    margin-top: 16px;
    padding-top: 12px;
  }

  /* Landing mobile */
  .wide-detail .comparison {
    aspect-ratio: 2.1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature-grid article + article {
    border-left: 0;
    padding-left: 0;
  }

  .feature-grid .icon {
    width: 32px;
    height: 32px;
  }

  .related-tools {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
  }

  /* Pricing page mobile */
  .page-heading {
    padding: 28px 0 20px;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .page-heading p {
    font-size: 14px;
    margin-top: 8px;
  }

  .free-preview {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 0;
  }

  .free-preview h2 {
    font-size: 26px;
  }

  .free-preview p {
    font-size: 13px;
  }

  .free-preview .button {
    width: 100%;
    box-sizing: border-box;
  }

  /* Account page mobile */
  .account-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 0 16px;
  }

  .account-heading h1 {
    font-size: 32px;
  }

  .account-heading .button {
    width: 100%;
    box-sizing: border-box;
  }

  .account-balance {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    box-sizing: border-box;
  }

  .account-balance > div {
    gap: 14px;
  }

  .account-balance h2 {
    font-size: 30px;
  }

  .account-balance .button {
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
  }

  .account-tabs {
    gap: 16px;
    margin: 18px 0 14px;
    overflow-x: auto;
  }

  .account-tabs button {
    font-size: 13px;
    white-space: nowrap;
  }

  .history-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* PHP templates mobile */
  .header-credits {
    font-size: 12px;
  }

  /* Logout of the profile menu stays on phones (REQUIREMENTS 10.1.2). */
  .header-actions > form {
    display: none;
  }

  .main-nav .nav-account,
  .main-nav .nav-account .sign-in {
    display: block;
  }

  .block-cta {
    margin-top: 16px;
    gap: 10px;
  }

  .how-section .block-cta .button {
    width: 100%;
  }

  .footer-badges {
    width: calc(100% - 32px);
  }

  .simple-page {
    padding: 40px 0 48px;
  }

  .simple-page h1 {
    font-size: 34px;
  }

  .simple-page p {
    font-size: 14px;
  }

  .auth-page {
    padding: 20px 0 32px;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .auth-card h1 {
    font-size: 30px;
    margin-bottom: 14px;
  }

  .auth-page .auth-card h1 {
    margin-bottom: 4px;
  }

  .auth-lead {
    margin-bottom: 14px;
  }

  .auth-or {
    margin: 10px 0;
  }

  .plain-form input[type="text"],
  .plain-form input[type="email"],
  .plain-form input[type="password"] {
    padding: 10px 12px;
    font-size: 16px; /* 16 px: iPhone Safari does not zoom into the field */
  }

  dialog.auth-modal {
    padding: 20px 18px 16px;
  }

  dialog.auth-modal h2 {
    font-size: 26px;
  }

  dialog.auth-modal p.auth-lead {
    font-size: 13px;
    margin-bottom: 12px;
  }
}

/* Buying credits (PLAN step 5): the packs on the result screen at balance 0, the notice after Polar */
.price-buy {
  display: block;
  width: 100%;
}

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

.tool-packs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tool-packs-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.pack-options {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pack-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e0dbd1;
  border-radius: 8px;
  background: #ffffff;
  padding: 11px 14px;
  font-size: 14px;
  color: #333333;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.pack-option:hover {
  border-color: #c5bfb4;
}

.pack-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pack-option:has(input:checked) {
  border-color: var(--gold);
  background: #fffcf5;
  box-shadow: 0 0 0 1px var(--gold);
}

.pack-option:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.pack-name strong {
  color: var(--ink);
  font-weight: 600;
}

.pack-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--gold);
  color: #1a1918;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  vertical-align: 1px;
}

.pack-price {
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
}

.pack-buy {
  width: 100%;
  margin-top: 12px;
  padding: 13px 20px;
  font-size: 16px;
}

.pack-buy:disabled {
  opacity: 0.7;
  cursor: progress;
}

.pack-note {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.checkout-notice {
  background: var(--cream);
  border-top: 1px solid #eee7db;
  border-bottom: 1px solid #eee7db;
}

.checkout-notice-inner {
  width: min(1240px, 92%);
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-notice-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  border-right-color: transparent;
}

.checkout-notice.is-pending .checkout-notice-icon {
  animation: checkout-spin 0.9s linear infinite;
}

.checkout-notice.is-paid {
  background: #eef7f0;
  border-color: #d3e9d9;
}

.checkout-notice.is-paid .checkout-notice-icon {
  border: 0;
  background: #1f8a5b;
}

.checkout-notice.is-paid .checkout-notice-icon::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin: 3px 0 0 6.5px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkout-notice.is-failed {
  background: #fbefed;
  border-color: #f0d6d1;
}

.checkout-notice.is-failed .checkout-notice-icon {
  border: 2px solid #b4532a;
}

.checkout-notice.is-slow .checkout-notice-icon {
  border-right-color: var(--gold);
}

.checkout-notice-text {
  flex: 1;
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.checkout-notice-close {
  font-size: 20px;
  line-height: 1;
  color: #888888;
  padding: 2px 6px;
}

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

@media (max-width: 700px) {
  .pack-options {
    gap: 12px;
  }

  .pack-option {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* On a narrow row the badge sits on the top border, so Starter keeps one line like the others. */
  .pack-badge {
    position: absolute;
    top: -9px;
    left: 10px;
    margin: 0;
    font-size: 10px;
  }

  .pack-price {
    font-size: 12px;
  }

  .checkout-notice-inner {
    width: calc(100% - 32px);
    max-width: 358px;
    padding: 10px 0;
  }

  .checkout-notice-text {
    font-size: 13px;
  }
}

/* Account: the approved account.html structure, with live profile and history states. */
.profile-menu { position: relative; }
.profile-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); border: 1px solid var(--gold); display: grid; place-items: center; cursor: pointer; font-weight: 600; list-style: none; overflow: hidden; }
.profile-avatar::-webkit-details-marker { display: none; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar [hidden] { display: none; }
.profile-dropdown { position: absolute; z-index: 40; right: 0; top: calc(100% + 10px); width: 220px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px #0002; }
.profile-dropdown a, .profile-dropdown button, .profile-name { display: block; padding: 10px; width: 100%; text-align: left; font-size: 14px; }
.profile-name { font-weight: 600; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.profile-dropdown a:hover, .profile-dropdown button:hover { background: var(--cream); border-radius: 6px; }
.account-content { padding-bottom: 45px; }
.account-tabs a { padding: 10px 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; font-size: 15px; }
.account-tabs a[aria-current] { border-color: var(--gold); color: var(--ink); font-weight: 600; }
.history-preview { display: grid; place-items: center; aspect-ratio: 1.55; background: var(--cream); color: var(--muted); text-align: center; }
.history-preview img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.history-card-copy { gap: 8px; align-items: flex-start; }
.history-card-copy > div { min-width: 0; }
.history-card-copy .status-pill { flex-shrink: 0; max-width: 100px; text-align: center; }
.history-actions { flex-wrap: wrap; gap: 12px; min-height: 35px; }
.history-actions form { margin-left: auto; }
.history-actions .delete-photo { font-size: 12px; }
.account-balance b { font-weight: inherit; }
.account-empty { padding: 36px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }
.account-empty p { margin: 10px 0 20px; }
.account-notice { background: var(--cream); padding: 14px; margin-bottom: 20px; border-radius: 8px; }
.purchase-row { margin-top: 16px; gap: 16px; flex-wrap: wrap; }
.purchase-row h3 { font-size: 18px; }
.purchase-row p { font-size: 13px; }
.account-pagination { display: flex; justify-content: space-between; margin-top: 24px; gap: 24px; color: var(--gold-hover); }
.account-password { margin-top: 36px; }
.settings-password-form, .settings-delete-form { max-width: 440px; margin-top: 20px; }
.account-password > p, .delete-account > p { max-width: 650px; }
.account-photo { padding: 36px 0 60px; }
.account-photo h1 { font-size: 38px; margin-top: 20px; }
.account-photo > p { margin: 12px 0; }
.account-photo > .comparison { margin: 24px 0; max-width: 800px; aspect-ratio: auto; }
.account-photo > .comparison > img { position: relative; display: block; width: 100%; height: auto; }
.account-photo > .history-card { max-width: 400px; margin-top: 24px; }
.account-photo > .history-card .history-preview { display: none; }
@media (max-width: 640px) {
  .account-tabs { gap: 24px; }
  .account-tabs a { font-size: 14px; white-space: nowrap; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .history-card-copy .status-pill { max-width: 110px; }
}
.account-photo .before-shade { filter: none; }

/* Information pages: Daylight typography and palette, distinct editorial compositions. */
.info-wrap { max-width: 1120px; margin: 0 auto; padding: 64px 32px 30px; }
.info-wrap h1 { font: 400 clamp(40px, 5vw, 66px)/1.06 var(--serif); letter-spacing: -1.8px; margin: 18px 0 24px; }
.info-wrap h2 { font: 400 34px/1.15 var(--serif); letter-spacing: -.7px; margin: 0 0 20px; }
.info-wrap h3 { font: 400 25px/1.2 var(--serif); margin: 18px 0 12px; }
.info-wrap p, .info-wrap li, .info-wrap dd { line-height: 1.75; }
.info-wrap p { color: #56585c; margin: 0 0 18px; }
.info-wrap p a, .policy-copy a, .info-steps a { text-decoration: underline; text-underline-offset: 3px; }
.info-lead { font-size: 19px; max-width: 650px; }
.info-heading { padding: 10px 0 40px; }
.info-section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.info-split { display: grid; grid-template-columns: 1fr 1.45fr; gap: 60px; }
.info-note { background: var(--cream); border-left: 3px solid var(--gold); padding: 28px 32px; margin: 32px 0; }
.info-note h2 { font-size: 27px; }
.info-note p:last-child { margin-bottom: 0; }
.info-dark { background: #242422; color: var(--paper); border-radius: 8px; padding: 42px 48px; margin-top: 40px; }
.info-dark p { color: #e0ddd5; max-width: 790px; }
.info-dark .eyebrow { color: #f2b64e; }
.info-dark h2 { margin-top: 12px; }
.info-links { display: flex; flex-wrap: wrap; gap: 12px 23px; padding: 26px 0; font-size: 13px; color: #57534d; }
.info-links a:hover, .policy-toc a:hover { text-decoration: underline; }
.about-story { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 54px; }
.about-story figure { margin: 0; }
.about-story img { width: 100%; height: 450px; object-fit: cover; border-radius: 9px 90px 9px 9px; }
.about-story figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.preset-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.preset-index div { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
.preset-index img { width: 26px; height: 26px; }
.info-steps { padding-left: 24px; margin: 0; }
.info-steps li { padding: 0 0 20px 10px; }
.info-steps li::marker { color: #a66a14; font-family: var(--serif); }
.info-pack-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 28px 0; }
.info-pack-row div { border-top: 2px solid var(--gold); padding-top: 16px; }
.info-pack-row strong, .info-pack-row span { display: block; }
.info-pack-row strong { font: 26px var(--serif); margin-bottom: 8px; }
.team-intro { position: relative; padding: 20px 260px 20px 0; }
.team-wordmark { position: absolute; right: 0; top: 30px; font: 100px var(--serif); letter-spacing: -6px; }
.team-wordmark span { color: var(--gold); display: block; text-align: center; font-size: 120px; }
.info-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 35px; }
.info-cards article { padding: 28px 22px; background: var(--cream); border-radius: 8px; }
.team-manifesto { margin: 45px 0; border-left: 2px solid var(--gold); padding: 20px 45px; }
.team-manifesto h2 { font-size: 46px; margin-top: 20px; }
.team-manifesto p { max-width: 540px; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.2fr; gap: 64px; padding: 10px 0 35px; }
.contact-address { background: var(--cream); padding: 36px; border-radius: 8px; align-self: start; }
.contact-address img { width: 52px; margin-bottom: 25px; }
.contact-email { display: block; font: 25px var(--serif); text-decoration: underline; margin-bottom: 26px; overflow-wrap: anywhere; }
.contact-topic { border-top: 1px solid var(--line); padding: 8px 0; }
.privacy-summary { display: grid; grid-template-columns: repeat(3,1fr); padding: 30px; gap: 20px; background: var(--cream); border-radius: 8px; }
.privacy-summary strong, .privacy-summary span { display: block; }
.privacy-summary strong { font: 31px var(--serif); margin-bottom: 8px; }
.privacy-summary span { font-size: 13px; color: var(--muted); }
.policy-grid { display: grid; grid-template-columns: 220px 1fr; gap: 65px; margin-top: 48px; }
.policy-toc { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 25px; align-self: start; font-size: 14px; border-left: 2px solid var(--gold); padding-left: 20px; }
.policy-copy section { margin-bottom: 42px; scroll-margin-top: 30px; }
.policy-copy h2 { font-size: 29px; }
.info-definitions { margin: 0 0 25px; }
.info-definitions dt { font-weight: 600; margin-top: 20px; }
.info-definitions dd { margin: 6px 0 0; color: #56585c; }
.terms-heading { max-width: 800px; }
.terms-summary { margin: 25px 0; }
.terms-nav { display: flex; flex-wrap: wrap; gap: 15px 28px; padding: 12px 0 32px; border-bottom: 1px solid var(--line); }
.terms-sections { padding-top: 40px; }
.terms-sections section { display: grid; grid-template-columns: 100px 1fr; gap: 25px; }
.term-number { font: 52px var(--serif); color: #b77c26; }
.refund-options { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.refund-options section { padding: 35px; border: 1px solid var(--line); border-radius: 8px; }
.refund-options img { width: 42px; display: block; margin-bottom: 28px; }
.refund-options h2 { margin-top: 18px; }
.refund-window { background: var(--cream); }
.refund-days { display: block; font: 80px/1 var(--serif); color: #a26712; }
.refund-days small { font: 13px var(--sans); display: block; margin-top: 8px; }
.refund-process { max-width: 800px; }
.cookie-heading { background: var(--cream); padding: 40px; border-radius: 8px; position: relative; overflow: hidden; }
.cookie-heading > img { position: absolute; right: -35px; bottom: -30px; width: 225px; opacity: .3; pointer-events: none; }
.cookie-heading > :not(img) { position: relative; }
.cookie-table { border-collapse: collapse; width: 100%; text-align: left; }
.cookie-table th, .cookie-table td { padding: 20px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.cookie-table thead { background: var(--cream); font-size: 13px; }
.cookie-table th:first-child { width: 22%; }
.cookie-table td:last-child { width: 22%; }
.cookie-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 45px; }
.auth-about-links { margin: 7px 0 0; }
.pricing-policy-links .info-links { justify-content: center; }
@media (max-width: 700px) {
 .info-wrap { padding: 32px 20px 18px; }
 .info-wrap h1 { font-size: 42px; letter-spacing: -1.2px; }
 .info-wrap h2 { font-size: 30px; }
 .info-lead { font-size: 17px; }
 .about-story, .info-split, .info-cards, .contact-layout, .policy-grid, .refund-options, .cookie-notes { grid-template-columns: 1fr; gap: 26px; }
 .about-story img { height: 340px; }
 .info-section { padding: 32px 0; }
 .preset-index { grid-template-columns: 1fr 1fr; gap: 10px; }
 .preset-index div { padding: 12px 8px; gap: 7px; font-size: 13px; }
 .info-dark { padding: 28px 24px; margin-top: 28px; }
 .info-pack-row { gap: 12px; }
 .info-pack-row span { font-size: 13px; }
 .team-intro { padding: 0; }
 .team-wordmark { position: static; font-size: 65px; display: flex; gap: 25px; align-items: center; }
 .team-wordmark span { font-size: 75px; }
 .team-manifesto { padding: 10px 22px; }
 .team-manifesto h2 { font-size: 36px; }
 .contact-address { padding: 26px; }
 .privacy-summary { gap: 18px; padding: 22px; grid-template-columns: 1fr; }
 .privacy-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
 .privacy-summary strong { font-size: 25px; margin: 0; }
 .privacy-summary span { max-width: 125px; }
 .policy-toc { position: static; }
 .terms-sections section { grid-template-columns: 1fr; gap: 12px; }
 .term-number { font-size: 36px; }
 .refund-options section, .cookie-heading { padding: 27px 23px; }
 .info-note { padding: 23px; }
 .cookie-table th, .cookie-table td { padding: 14px 7px; font-size: 12px; overflow-wrap: anywhere; }
 .cookie-table th:first-child { width: 24%; }
 .info-links { gap: 10px 18px; }
}
.info-dark h2 { color: var(--paper); }

/* Real before / after examples (public/img/examples): the before is its own photo, not darkened by CSS */
.before-shade.is-real { filter: none; }

/* Tools: the landings in a menu under «Tools» (header) */
.tools-menu { position: relative; }
.tools-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.tools-menu summary::-webkit-details-marker { display: none; }
.tools-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.tools-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.tools-menu summary:hover { color: var(--gold); }
.tools-dropdown { position: absolute; z-index: 40; left: -14px; top: calc(100% + 14px); width: 260px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px #0002; display: flex; flex-direction: column; }
.tools-dropdown a { padding: 9px 12px; border-radius: 6px; font-size: 14px; }
.tools-dropdown a:hover { background: var(--cream); color: var(--ink); }
.tools-dropdown a[aria-current] { color: var(--gold); font-weight: 600; }
@media (max-width: 700px) {
 .tools-dropdown { position: static; width: auto; margin-top: 8px; padding: 0 0 0 12px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
 .tools-dropdown a { padding: 7px 0; }
}

/* Language menu (header «EN ⌄»): the same page in the other languages */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.lang-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-menu summary:hover { color: var(--gold); }
.lang-dropdown { position: absolute; z-index: 40; right: -10px; top: calc(100% + 14px); width: 220px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px #0002; display: flex; flex-direction: column; }
.lang-dropdown a { display: flex; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: 6px; font-size: 14px; color: var(--ink); }
.lang-dropdown a span { width: 22px; flex-shrink: 0; font-size: 11px; font-weight: 600; color: #888888; letter-spacing: 0.04em; }
.lang-dropdown a:hover { background: var(--cream); }
.lang-dropdown a[aria-current] { color: var(--gold); font-weight: 600; }
.footer-languages a { color: #999999; }
.footer-languages a:hover, .footer-languages a[aria-current] { color: var(--ink); }
.footer-languages a[aria-current] { font-weight: 600; }
@media (max-width: 700px) {
 .lang-dropdown { top: calc(100% + 12px); width: 200px; right: -6px; }
}

/* Long words of other languages (JA / KO have no spaces to break at, PT / DE have long words) never cut a line */
h1, h2, h3, p, .button, .preset, .price-card, .faq summary, .mode-card, .microcopy { overflow-wrap: break-word; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p, :lang(ja) figcaption { word-break: auto-phrase; }
:lang(ja) h2, :lang(ja) h3, :lang(ko) h2, :lang(ko) h3 { text-wrap: balance; }

/* Home: Daylight hero. Keep the shared tool and SEO landing layouts intact. */
.home-page {
  --paper: #fcfaf6;
  --ink: #27251f;
}
.home-page .site-header { height: 82px; background: transparent; }
.home-page .header-inner { border-bottom: 1px solid #e8e1d5; }
.home-page .header-inner,
.hero-daylight { width: min(1240px, calc(100% - 84px)); }
.hero-daylight {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 62px;
  align-items: center;
  min-height: 0;
  padding: 40px 0 46px;
}
.hero-daylight::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -60px -110px -20px;
  background: radial-gradient(ellipse at 83% 39%, #f4dab04d, transparent 47%);
}
.hero-daylight .hero-copy { position: relative; z-index: 1; width: 100%; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a46a1d;
  font-size: 10px;
  margin: 0 0 18px;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #df9a2b; flex-shrink: 0; }
.hero-daylight h1 { font-size: clamp(46px, 4.5vw, 64px); line-height: 1.02; letter-spacing: -2px; }
.hero-daylight h1 em { position: relative; color: #b57825; font-weight: 400; white-space: nowrap; }
.hero-daylight h1 em::after {
  content: '';
  position: absolute;
  left: 1%; right: 0; bottom: -12px; height: 18px;
  background: url('../img/hero/underline.svg') center / 100% 100% no-repeat;
}
.hero-daylight .hero-description { color: #78756c; font-size: 14px; line-height: 1.5; margin: 28px 0 24px; }
.hero-daylight .editor { position: relative; padding: 16px; border-color: #e7ddcd; border-radius: 18px; box-shadow: 0 10px 30px #5a3b1010; }
.hero-daylight .editor::before { content: ''; position: absolute; top: -1px; left: 32px; right: 32px; height: 2px; background: linear-gradient(90deg, transparent, #dba95180, transparent); }
.hero-daylight .upload-zone { min-height: 92px; padding: 17px 12px; border: 1px dashed #cfbc9a; border-radius: 12px; background: radial-gradient(ellipse at 50% 0, #f5e6cd44, transparent 80%), #fcfaf6; }
.hero-daylight .upload-zone > .icon { display: none; }
.hero-daylight .upload-zone strong { font-size: 14px; }
.hero-daylight .upload-zone span { font-size: 10px; color: #78756c; }
.hero-daylight .upload-zone:hover { border-color: var(--gold); background-color: #fff5e3; }
.hero-daylight .preset-controls { gap: 6px; margin: 12px 0; }
.hero-daylight .preset { justify-content: center; padding: 8px 3px; gap: 4px; font-size: 11px; border-radius: 7px; box-shadow: none; }
.hero-daylight .preset .icon { width: 13px; height: 13px; }
.hero-daylight .preset.selected { box-shadow: none; border-color: #df9a2b; background: #fff5e3; color: #9a610f; font-weight: 500; }
.hero-daylight .generate-button { border: 0; border-radius: 9px; padding: 13px 10px; font-size: 14px; background: linear-gradient(110deg, #e3a12f, #d99424); box-shadow: 0 3px 0 #c58a2030; }
.hero-daylight .generate-button:hover { filter: brightness(.96); }
.hero-daylight .microcopy,
.hero-credit-note { font-size: 10px; line-height: 1.5; text-align: center; color: #78756c; margin-top: 10px; }
.hero-daylight .editor:has(.tool-progress:not([hidden])) .hero-credit-note,
.hero-daylight .editor:has(.result-actions:not([hidden])) .hero-credit-note { display: none; }
.hero-art { position: relative; isolation: isolate; min-width: 0; padding: 25px 10px 0; }
.hero-art::before { content: ''; position: absolute; z-index: -2; pointer-events: none; width: 125%; aspect-ratio: 1; top: -17%; left: -12%; background: radial-gradient(circle, #efd09960, transparent 68%); }
.hero-orbits { position: absolute; pointer-events: none; z-index: -1; max-width: none; width: 113%; height: calc(100% - 26px); left: -6.5%; top: -18px; }
.hero-sunburst { position: absolute; pointer-events: none; width: 68px; height: 68px; top: -52px; left: -60px; transform: rotate(8deg); opacity: .8; }
.hero-study { position: absolute; top: -26px; left: 18px; right: 20px; display: flex; justify-content: space-between; gap: 12px; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #a88b5f; }
.hero-study-index { letter-spacing: 1px; white-space: nowrap; }
.hero-photo-note { color: #27251f; position: absolute; top: 0; right: -10px; z-index: 2; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 10px 15px; border: 1px solid #eee1cb; border-radius: 8px; background: #fffdf8; font: italic 16px/1.3 var(--serif); box-shadow: 0 8px 24px #7755210c; transform: rotate(4deg); }
.hero-photo-note img { width: 18px; height: 18px; flex-shrink: 0; }
.hero-daylight .hero-photo { width: 100%; max-width: none; margin: 0; height: clamp(340px, 31.7vw, 432px); min-height: 0; border-radius: 110px 110px 18px 18px; box-shadow: 0 22px 44px #73512c20; }
.hero-daylight .hero-photo > img,
.hero-daylight .hero-photo .before-shade img { object-position: center 38%; }
.hero-daylight .hero-photo .comparison-line { background: #e9b66a; }
.hero-daylight .hero-photo .comparison-line > span { top: 50%; width: 30px; height: 30px; font-weight: 400; }
.hero-daylight .hero-photo.is-user { border-radius: 18px; }
.hero-daylight .hero-photo.is-user > img,
.hero-daylight .hero-photo.is-user .before-shade img { object-position: center; }
.hero-photo-caption { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 10px 4px; color: #776b57; font-size: 11px; text-align: center; }
.hero-photo-caption::before,
.hero-photo-caption::after { content: ''; height: 1px; width: 42px; flex-shrink: 0; background: #d9c8a9; }
.hero-drag-note { text-align: center; color: #b38b52; font: italic 13px/1.5 var(--serif); }
.hero-drag-note span { margin-right: 6px; }
.hero-art:has(.is-user) .hero-study,
.hero-art:has(.is-user) .hero-photo-note,
.hero-art:has(.is-user) .hero-photo-caption,
.hero-art:has(.is-single) .hero-drag-note { visibility: hidden; }
.home-page .moments { position: relative; border-top: 1px solid #e8e1d5; }
.home-page .moments::before { content: ''; position: absolute; top: -12px; left: calc(50% - 21px); width: 42px; height: 24px; background: url('../img/hero/sparkle.svg') center / 20px no-repeat, var(--paper); }
.home-page .moments .arrow-link {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 8px 0 18px;
  color: #b57825;
  font: italic 400 clamp(24px, 2.5vw, 32px)/1.25 var(--serif);
  text-align: center;
  text-decoration: none;
}
.home-page .moments .arrow-link::after {
  content: '';
  position: absolute;
  left: 1%;
  right: 1%;
  bottom: 0;
  height: 18px;
  background: url('../img/hero/underline.svg') center / 100% 100% no-repeat;
  transition: transform .15s;
}
.home-page .moments .arrow-link:hover::after { transform: translateY(2px); }
@media (min-width: 701px) and (max-width: 1000px) {
  .hero-daylight { gap: 32px; width: calc(100% - 48px); }
  .hero-daylight h1 { font-size: 42px; }
  .hero-daylight .hero-description { font-size: 13px; }
  .hero-daylight .preset { font-size: 10px; }
  .hero-daylight .preset .icon { display: none; }
  .hero-daylight .hero-photo { height: 340px; }
  .hero-sunburst { left: -25px; width: 50px; }
  .hero-photo-note { font-size: 14px; }
}
@media (max-width: 700px) {
  .home-page .site-header { height: 62px; }
  .home-page .header-inner { width: calc(100% - 32px); }
  .hero-daylight { width: 100%; padding: 26px 0 32px; gap: 68px; }
  .hero-daylight .hero-copy { width: calc(100% - 32px); max-width: 460px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 1.3px; margin-bottom: 16px; }
  .hero-daylight h1 { font-size: clamp(38px, 10.8vw, 54px); letter-spacing: -1.5px; }
  .hero-daylight .hero-description { margin: 24px 0 20px; font-size: 14px; }
  .hero-daylight .hero-description br { display: none; }
  .hero-daylight .editor { padding: 14px; }
  .hero-daylight .preset-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .hero-daylight .preset { min-height: 38px; font-size: 12px; gap: 6px; white-space: normal; }
  .hero-daylight .preset .icon { width: 14px; height: 14px; }
  .hero-daylight .generate-button { min-height: 46px; font-size: 15px; }
  .hero-daylight .upload-zone { min-height: 94px; }
  .hero-daylight .upload-zone span { font-size: 11px; }
  .hero-daylight .microcopy, .hero-credit-note { font-size: 11px; }
  .hero-art { width: calc(100% - 32px); max-width: 460px; margin: 0 auto; padding: 20px 8px 0; }
  .hero-daylight .hero-photo { height: auto; aspect-ratio: 1.08; border-radius: 76px 76px 14px 14px; }
  .hero-daylight .hero-photo.is-user { aspect-ratio: var(--photo-ratio, 1.08); max-height: 460px; }
  .hero-sunburst { width: 52px; height: 52px; top: -50px; left: -6px; }
  .hero-study { top: -30px; left: 56px; right: 10px; font-size: 8px; letter-spacing: 1.3px; }
  .hero-photo-note { right: 0; font-size: 13px; padding: 9px 12px; }
  .hero-photo-caption { font-size: 11px; margin-top: 20px; gap: 8px; }
  .hero-photo-caption::before, .hero-photo-caption::after { width: 22px; }
}

/* Home editorial and close-up review: warm, numbered detail study. */
.home-details { width: min(1240px, calc(100% - 84px)); padding: 52px 0 48px; }
.details-intro { position: relative; }
.details-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: #a47a3c; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.details-eyebrow::before { content: ''; width: 32px; height: 1px; flex-shrink: 0; background: #c9a46a; }
.details-sunburst { position: absolute; top: 0; left: 44%; width: 65px; height: 65px; opacity: .45; transform: rotate(10deg); pointer-events: none; }
.details-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.details-intro h2 { margin: 0 0 15px; font-size: clamp(40px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -1.7px; }
.details-intro h2 em { position: relative; white-space: nowrap; font-weight: 400; color: #b57825; }
.details-intro h2 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: -13px; height: 15px; background: url('../img/hero/underline.svg') center / 100% 100% no-repeat; }
.details-intro-copy p { color: #716c61; font-size: 14px; line-height: 1.6; margin-bottom: 15px; }
.details-intro-copy p:last-child { margin-bottom: 0; }
.details-divider { display: flex; align-items: center; gap: 18px; margin: 38px 0 32px; }
.details-divider::before, .details-divider::after { content: ''; flex: 1; height: 1px; background: #e7dfd1; }
.details-divider img { width: 17px; height: 17px; }
.details-review { padding: 28px 30px 24px; background: #f7f1e7; border: 1px solid #e9decb; border-radius: 22px; }
.details-review-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 21px; }
.details-review-heading h2 { margin: 0; font-size: 29px; line-height: 1.2; letter-spacing: -.8px; }
.details-review-heading > p { flex-shrink: 0; font: italic 14px/1.5 var(--serif); color: #b18a4d; }
.details-review-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 35px; align-items: center; }
.details-photo .comparison { height: clamp(280px, 25.5vw, 350px); border-radius: 70px 14px 14px 14px; box-shadow: 0 12px 24px #5b42120d; }
.details-photo .comparison-line { background: #ecc27d; width: 1px; }
.details-photo .comparison-line > span { width: 32px; height: 32px; font-size: 12px; font-weight: 400; }
.details-photo-note { margin-top: 12px; text-align: center; font: italic 12px/1.5 var(--serif); color: #aa8144; }
.details-photo-note span { margin-right: 7px; }
.details-checks { list-style: none; margin: 0; padding: 0; }
.details-checks li { display: flex; align-items: center; gap: 15px; padding: 14px 0; border-bottom: 1px solid #e6ddcd; }
.details-checks li:first-child { padding-top: 0; }
.details-checks li:last-child { border-bottom: 0; }
.details-check-number { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border: 1px solid #d9c59f; border-radius: 50%; color: #b17c2c; font: italic 15px var(--serif); }
.details-checks h3 { margin: 0 0 2px; font-size: 20px; font-weight: 400; line-height: 1.3; }
.details-checks p { color: #80786c; font-size: 12px; line-height: 1.6; }
.details-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding-top: 15px; border-top: 1px solid #e8dfce; color: #827967; font-size: 11px; line-height: 1.6; }
.details-notice > span { display: grid; place-items: center; width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; border: 1px solid #c3ad89; border-radius: 50%; font: italic 10px var(--serif); }
@media (min-width: 701px) and (max-width: 1000px) {
  .home-details { width: calc(100% - 48px); }
  .details-intro-grid { gap: 36px; }
  .details-intro h2 { font-size: 40px; }
  .details-sunburst { left: 42%; width: 48px; height: 48px; top: -8px; }
  .details-review { padding: 24px; }
  .details-review-heading { align-items: flex-start; }
  .details-review-heading h2 { font-size: 25px; }
  .details-review-heading > p { max-width: 150px; flex-shrink: 1; text-align: right; }
  .details-review-grid { gap: 24px; }
  .details-photo .comparison { height: 310px; }
  .details-checks h3 { font-size: 18px; }
  .details-checks li { gap: 10px; }
}
@media (max-width: 700px) {
  .home-details { width: calc(100% - 32px); max-width: 460px; padding: 32px 0; }
  .details-eyebrow { font-size: 9px; letter-spacing: 1.4px; margin-bottom: 20px; }
  .details-eyebrow::before { width: 22px; }
  .details-intro-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .details-intro h2 { font-size: clamp(34px, 9.7vw, 43px); letter-spacing: -1.2px; margin-bottom: 8px; }
  .details-intro-copy p { font-size: 13px; }
  .details-sunburst { width: 46px; height: 46px; top: 26px; left: auto; right: 0; opacity: .35; }
  .details-divider { margin: 28px 0 24px; }
  .details-review { padding: 20px 16px; border-radius: 18px; }
  .details-review-heading { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
  .details-review-heading h2 { font-size: 26px; }
  .details-review-heading > p { font-size: 13px; flex-shrink: 1; }
  .details-review-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .details-photo .comparison { height: auto; aspect-ratio: 1.25; border-radius: 52px 12px 12px 12px; }
  .details-photo-note { font-size: 12px; }
  .details-checks li { padding: 16px 0; gap: 12px; }
  .details-checks h3 { font-size: 20px; }
  .details-checks p { font-size: 12px; }
  .details-notice { margin-top: 16px; }
}
