:root {
  --ink: #171613;
  --paper: #f1ede5;
  --paper-deep: #e5ded2;
  --coral: #f06449;
  --coral-dark: #d84b33;
  --teal: #176a67;
  --teal-light: #b9d7cb;
  --lime: #d8ef76;
  --line: rgba(23, 22, 19, 0.18);
  --muted: #6d685f;
  --white: #fffdf8;
  --shadow: 0 24px 80px rgba(27, 24, 18, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 18%, rgba(240, 100, 73, 0.12), transparent 27rem),
    radial-gradient(circle at 92% 68%, rgba(23, 106, 103, 0.1), transparent 30rem),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.grain {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.topbar {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100% - 48px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 5px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Arial Black", "Helvetica Neue", sans-serif;
  font-size: 21px;
  letter-spacing: -0.8px;
}

.brand i {
  color: var(--coral);
  font-family: Georgia, serif;
  font-weight: 400;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d09a2c;
  box-shadow: 0 0 0 4px rgba(208, 154, 44, 0.12);
}

.live-status.is-online .status-dot {
  background: #45ad66;
  box-shadow: 0 0 0 4px rgba(69, 173, 102, 0.12);
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.screen {
  width: 100%;
  padding: 54px 0 70px;
  animation: reveal 0.5s ease both;
}

.screen[hidden] {
  display: none;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral-dark);
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.06em;
}

h1 {
  font-size: clamp(62px, 7.5vw, 112px);
  line-height: 0.92;
}

h1 em,
h2 em {
  color: var(--coral);
  font-style: normal;
}

.lead {
  max-width: 440px;
  margin: 32px 0 24px;
  color: #514d45;
  font-size: 17px;
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.4);
  color: #514d45;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.split-art {
  position: relative;
  aspect-ratio: 1.05;
  overflow: hidden;
  border: 1px solid rgba(23, 22, 19, 0.22);
  border-radius: 50% 50% 32% 32% / 43% 43% 22% 22%;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  isolation: isolate;
}

.split-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
}

.split-life {
  left: 0;
  background: linear-gradient(155deg, #f1b160 0%, #eb855a 38%, #c7573e 100%);
}

.split-work {
  right: 0;
  background: linear-gradient(155deg, #90bbb1 0%, #4d8d84 45%, #1b615e 100%);
}

.scene-label {
  position: absolute;
  top: 42px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.74);
  font-family: "Arial Black", sans-serif;
  font-size: 12px;
  letter-spacing: 0.24em;
}

.split-life .scene-label {
  left: 34px;
}

.split-work .scene-label {
  right: 30px;
}

.sun {
  position: absolute;
  top: 24%;
  left: 15%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffe2a1;
  box-shadow: 0 0 55px rgba(255, 232, 163, 0.65);
}

.mountain {
  position: absolute;
  left: -24%;
  width: 150%;
  transform: rotate(7deg);
  clip-path: polygon(0 100%, 0 56%, 18% 34%, 32% 58%, 48% 23%, 65% 50%, 82% 30%, 100% 57%, 100% 100%);
}

.mountain-back {
  bottom: 2%;
  height: 47%;
  background: #a9493c;
  opacity: 0.6;
}

.mountain-front {
  bottom: -7%;
  height: 44%;
  background: #683b32;
}

.star {
  position: absolute;
  color: #ffefc4;
  font-size: 22px;
}

.star-a {
  top: 18%;
  right: 15%;
}

.star-b {
  top: 37%;
  right: 33%;
  font-size: 12px;
}

.office-window {
  position: absolute;
  top: 18%;
  right: -5%;
  width: 78%;
  height: 39%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid rgba(221, 245, 236, 0.28);
  background: rgba(223, 247, 239, 0.11);
  transform: skewY(-5deg);
}

.office-window i {
  border-right: 1px solid rgba(221, 245, 236, 0.25);
}

.desk-line {
  position: absolute;
  right: -10%;
  bottom: 21%;
  width: 85%;
  height: 12px;
  background: #183f3d;
  transform: rotate(-4deg);
}

.desk-plant {
  position: absolute;
  right: 12%;
  bottom: 23%;
  width: 25px;
  height: 65px;
  border-radius: 60% 10% 60% 10%;
  background: #86aa68;
  box-shadow: 18px 10px 0 -5px #6b9257, -12px 22px 0 -6px #aac47f;
  transform: rotate(-12deg);
}

.split-seam {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 5px;
  margin-left: -2px;
  background: var(--lime);
  box-shadow: 0 0 24px rgba(216, 239, 118, 0.35);
}

.avatar-silhouette {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -2%;
  width: 53%;
  height: 75%;
  transform: translateX(-50%);
}

.avatar-head {
  position: absolute;
  z-index: 2;
  top: 3%;
  left: 50%;
  width: 42%;
  aspect-ratio: 0.84;
  border: 5px solid #27231d;
  border-radius: 48% 48% 45% 45% / 44% 44% 56% 56%;
  background:
    radial-gradient(circle at 33% 50%, #27231d 0 3px, transparent 4px),
    radial-gradient(circle at 67% 50%, #27231d 0 3px, transparent 4px),
    linear-gradient(105deg, #e7a16d 0 49%, #bd7959 50%);
  box-shadow: inset -10px 0 0 rgba(100, 50, 37, 0.12);
  transform: translateX(-50%);
}

.avatar-head::before {
  content: "";
  position: absolute;
  top: -9%;
  left: -10%;
  width: 120%;
  height: 40%;
  border-radius: 55% 55% 28% 24%;
  background: #27231d;
  transform: rotate(-2deg);
}

.avatar-head::after {
  content: "";
  position: absolute;
  left: 34%;
  bottom: 22%;
  width: 32%;
  height: 8%;
  border-bottom: 3px solid #73382f;
  border-radius: 50%;
}

.avatar-body {
  position: absolute;
  bottom: -12%;
  left: 5%;
  width: 90%;
  height: 70%;
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #d35639 0 49.5%, #124f4d 50%);
  border-top: 5px solid #27231d;
}

.avatar-badge {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 42%;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  font-family: "Arial Black", sans-serif;
  font-size: 9px;
  letter-spacing: 0.13em;
  transform: translateX(-50%);
}

.action-panel {
  width: min(860px, 100%);
  margin: 46px auto 0;
  padding: 23px 26px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.56);
  backdrop-filter: blur(14px);
}

.how-to {
  display: flex;
  align-items: center;
  margin-bottom: 19px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #4d4941;
  font-size: 12px;
}

.step b {
  color: var(--coral-dark);
  font-family: "Arial Narrow", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.step-line {
  height: 1px;
  flex: 1;
  margin: 0 14px;
  background: var(--line);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
}

.consent-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1px solid rgba(23, 22, 19, 0.4);
  border-radius: 4px;
  background: var(--white);
}

.consent-row input:checked + .checkmark {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: inset 0 0 0 4px var(--white);
}

.text-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  background: transparent;
  font-size: inherit;
  cursor: pointer;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
}

.button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button input {
  display: none;
}

.button-primary {
  color: var(--white);
  background: var(--ink);
}

.button-primary:hover {
  background: #2b2823;
}

.button-icon {
  color: var(--lime);
  font-size: 18px;
}

.button-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.35);
}

.microcopy {
  margin: 12px 0 0;
  color: #858075;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.microcopy.dark {
  color: #817b70;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #8b857a;
  font-family: "Arial Narrow", sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(37px, 4.5vw, 60px);
  line-height: 1;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.back-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.4);
  cursor: pointer;
}

.compose-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(440px, 1.2fr);
  gap: 46px;
  align-items: start;
}

.photo-panel {
  position: relative;
}

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #cdc4b4;
  box-shadow: 0 18px 45px rgba(36, 31, 24, 0.14);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.face-guide {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 56%;
  height: 55%;
  border: 1px dashed rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 999px rgba(15, 14, 12, 0.12);
}

.photo-ok {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  font-size: 10px;
  font-weight: 700;
}

.change-photo {
  display: block;
  margin: 13px auto 0;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.photo-tip {
  margin: 18px 0 0;
  color: #8b857a;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.theme-panel {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.5);
}

.panel-label {
  margin: 0 0 14px;
  color: #5c574f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.theme-list {
  display: grid;
  gap: 10px;
}

.theme-card {
  position: relative;
  min-height: 96px;
  padding: 12px 46px 12px 12px;
  display: grid;
  grid-template-columns: 25px 136px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: left;
  background: rgba(255, 253, 248, 0.5);
  cursor: pointer;
  transition:
    border 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.theme-card:hover {
  transform: translateY(-2px);
}

.theme-card.is-selected {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 9px 24px rgba(34, 30, 23, 0.09);
}

.theme-index {
  align-self: start;
  padding-top: 4px;
  color: #9b9488;
  font-family: "Arial Narrow", sans-serif;
  font-size: 9px;
}

.theme-preview {
  position: relative;
  height: 70px;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(90deg, #e4965c 0 49%, #5f9990 51% 100%);
}

.theme-preview::before,
.theme-preview::after {
  content: "";
  position: absolute;
  bottom: -16px;
  width: 43%;
  height: 62px;
  border-radius: 50% 50% 20% 20%;
}

.theme-camp {
  background: linear-gradient(90deg, #58785f 0 49%, #91aea8 51% 100%);
}

.theme-camp::before,
.theme-camp::after {
  bottom: 0;
  width: 48%;
  height: 34px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 0;
}

.theme-clinic {
  background: linear-gradient(90deg, #cc8158 0 49%, #94c4c2 51% 100%);
}

.theme-preview i {
  position: absolute;
  top: 6px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.76);
  font-family: "Arial Narrow", sans-serif;
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.theme-preview .theme-life {
  left: 7px;
}

.theme-preview .theme-work {
  right: 7px;
}

.theme-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.theme-copy strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.theme-copy small {
  overflow: hidden;
  color: #817b70;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-dot {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 17px;
  height: 17px;
  border: 1px solid #aaa39a;
  border-radius: 50%;
  transform: translateY(-50%);
}

.theme-card.is-selected .select-dot {
  border: 5px solid var(--ink);
  background: var(--lime);
}

.access-field {
  margin-top: 14px;
}

.access-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.access-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: var(--white);
}

.access-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 106, 103, 0.09);
}

.button-generate {
  width: 100%;
  margin-top: 17px;
  justify-content: space-between;
  color: var(--white);
  background: var(--coral);
}

.button-generate:hover {
  background: var(--coral-dark);
}

.button-generate:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.generate-arrow {
  font-size: 20px;
}

.loading-screen {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.loading-visual {
  position: relative;
  width: min(380px, 70vw);
  aspect-ratio: 16 / 10;
  margin: 0 auto 30px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.loading-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
}

.loading-left {
  left: 0;
  background:
    radial-gradient(circle at 58% 36%, rgba(255, 231, 157, 0.8), transparent 18%),
    linear-gradient(145deg, #e6a458, #b9533d);
}

.loading-right {
  right: 0;
  background:
    linear-gradient(90deg, transparent 48%, rgba(226, 247, 238, 0.2) 49% 50%, transparent 51%),
    linear-gradient(150deg, #86b4aa, #174e4c);
}

.loading-scan {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--lime);
  box-shadow: 0 0 28px 8px rgba(216, 239, 118, 0.42);
  animation: scan 2.1s ease-in-out infinite;
}

.loading-monogram {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.93);
  font-family: "Arial Black", sans-serif;
  font-size: 40px;
  letter-spacing: -0.08em;
  transform: translate(-50%, -50%);
}

@keyframes scan {
  0%,
  100% {
    left: 20%;
  }
  50% {
    left: 80%;
  }
}

.loading-screen h2 {
  font-size: clamp(35px, 5vw, 56px);
  line-height: 1.12;
}

.progress-track {
  width: min(420px, 78vw);
  height: 4px;
  margin: 30px auto 14px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(23, 22, 19, 0.12);
}

.progress-track span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 0.8s ease;
}

#progressText {
  min-height: 22px;
  margin: 0;
  color: #5b564e;
  font-size: 12px;
}

.loading-note {
  margin-top: 38px;
  color: #8e877c;
  font-size: 10px;
}

.result-screen {
  max-width: 940px;
  margin: 0 auto;
}

.result-heading {
  align-items: flex-end;
  justify-content: space-between;
}

.result-stamp {
  margin-bottom: 4px;
  padding: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: "Arial Narrow", sans-serif;
  font-size: 8px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.08em;
  transform: rotate(-9deg);
}

.result-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(23, 22, 19, 0.3);
  border-radius: 18px;
  background: #d2cabc;
  box-shadow: 0 22px 65px rgba(31, 27, 20, 0.2);
}

.result-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.result-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.demo-notice {
  margin-top: 13px;
  padding: 11px 14px;
  border: 1px solid rgba(240, 100, 73, 0.35);
  border-radius: 9px;
  color: #98412f;
  background: rgba(240, 100, 73, 0.08);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.result-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.button-primary span:last-child {
  margin-left: auto;
  font-size: 20px;
}

.secondary-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: #736d63;
  font-size: 11px;
}

.secondary-actions button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.hashtag {
  margin: 26px 0 0;
  color: #a19a8f;
  font-family: "Arial Narrow", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
}

.hashtag span {
  margin-left: 10px;
}

.privacy-dialog {
  width: min(500px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.privacy-dialog::backdrop {
  background: rgba(17, 16, 14, 0.56);
  backdrop-filter: blur(6px);
}

.privacy-dialog h2 {
  margin-bottom: 20px;
  font-size: 36px;
}

.privacy-dialog p:not(.eyebrow) {
  color: #615b51;
  font-size: 12px;
  line-height: 1.85;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 22, 19, 0.06);
  font-size: 20px;
  cursor: pointer;
}

.button-dark {
  width: 100%;
  margin-top: 12px;
  color: var(--white);
  background: var(--ink);
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  max-width: calc(100% - 36px);
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(23, 22, 19, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .intro-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;
  }

  h1 {
    font-size: clamp(54px, 8.8vw, 82px);
  }

  .compose-grid {
    grid-template-columns: minmax(240px, 0.75fr) minmax(380px, 1.25fr);
    gap: 24px;
  }

  .theme-card {
    grid-template-columns: 20px 110px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .topbar,
  .app-shell,
  .site-footer {
    width: min(100% - 30px, 560px);
  }

  .topbar {
    height: 70px;
  }

  .app-shell {
    min-height: calc(100vh - 126px);
    align-items: flex-start;
  }

  .screen {
    padding: 34px 0 40px;
  }

  .intro-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(58px, 18vw, 88px);
  }

  .lead {
    margin: 24px 0 20px;
    font-size: 15px;
  }

  .split-art {
    width: min(90%, 390px);
    margin: 0 auto;
  }

  .action-panel {
    width: 100%;
    margin-top: 30px;
    padding: 18px 16px 16px;
  }

  .how-to {
    margin-bottom: 16px;
  }

  .step-line {
    margin: 0 8px;
  }

  .step {
    gap: 5px;
    font-size: 10px;
  }

  .primary-actions {
    grid-template-columns: 1fr;
  }

  .consent-row {
    font-size: 10px;
  }

  .section-heading {
    gap: 13px;
    margin-bottom: 25px;
  }

  .section-heading h2 {
    font-size: 40px;
  }

  .compose-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .photo-panel {
    width: 100%;
  }

  .photo-frame {
    max-height: 55vh;
    aspect-ratio: 4 / 4.5;
  }

  .theme-panel {
    width: 100%;
    padding: 16px;
  }

  .theme-card {
    min-height: 82px;
    grid-template-columns: 18px 94px minmax(0, 1fr);
    padding: 10px 37px 10px 10px;
  }

  .theme-preview {
    height: 58px;
  }

  .theme-copy strong {
    font-size: 14px;
  }

  .result-heading {
    align-items: flex-start;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .site-footer {
    height: 56px;
    font-size: 7px;
  }

  .privacy-dialog {
    padding: 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
