@font-face {
    font-family: 'Anek';
    src: url('assets/fonts/AnekLatin-Variable.ttf') format('truetype');
    font-weight: 100 800;
    font-stretch: 75% 125%;
    font-display: swap;
}

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

:root {
    --page: #f4f5f2;
    --surface: #ffffff;
    --surface-soft: #e9ede9;
    --ink: #151a18;
    --ink-soft: #313a36;
    --muted: #59615d;
    --line: #d6dbd7;
    --line-strong: #aeb6b1;
    --accent: #de5b0b;
    --accent-dark: #a84004;
    --accent-soft: #f7dfd0;
    --forest: #183d2d;
    --danger: #a32828;
    --success: #17643c;
    --radius-small: 8px;
    --radius-medium: 14px;
    --z-sticky: 20;
    --font: 'Anek', 'Segoe UI', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    min-width: 0;
    overflow-x: clip;
    color: var(--ink);
    background: var(--page);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

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

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

a {
    color: inherit;
}

.shell {
    width: min(calc(100% - 48px), 1240px);
    margin-inline: auto;
}

.section {
    padding-block: clamp(92px, 10vw, 148px);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: var(--surface);
    background: var(--ink);
    border-radius: var(--radius-small);
    transform: translateY(-160%);
    transition: transform 180ms ease-out;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(244, 245, 242, 0.96);
    border-bottom: 1px solid rgba(21, 26, 24, 0.1);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 34px;
    padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: block;
    width: 39px;
    height: 39px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
}

.brand-name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.primary-nav a {
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 550;
    text-decoration: none;
    transition: color 180ms ease-out;
}

.primary-nav a:hover {
    color: var(--accent-dark);
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease-out, color 200ms ease-out;
}

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

.button:active {
    transform: translateY(1px) scale(0.99);
}

.button:focus-visible,
.text-link:focus-visible,
.brand:focus-visible,
.primary-nav a:focus-visible,
.template-slot:focus-visible,
.upload-zone:focus-visible,
.form-input:focus-visible {
    outline: 3px solid rgba(222, 91, 11, 0.42);
    outline-offset: 3px;
}

.button-primary {
    color: #ffffff;
    background: var(--accent);
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-dark {
    color: #ffffff;
    background: var(--ink);
}

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

.button-secondary {
    color: var(--ink);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.button-secondary:hover {
    color: var(--surface);
    background: var(--ink);
    box-shadow: none;
}

.button-small {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 14px;
}

.header-cta-short {
    display: none;
}

.hero {
    display: flex;
    min-height: calc(100dvh - 76px);
    align-items: center;
    overflow: clip;
    padding-block: clamp(56px, 7vw, 92px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
    align-items: center;
    gap: clamp(56px, 8vw, 120px);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    width: fit-content;
    margin-bottom: 22px;
    padding-bottom: 6px;
    color: var(--accent-dark);
    border-bottom: 2px solid var(--accent);
    font-size: 16px;
    font-weight: 650;
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(3.65rem, 6.4vw, 5.8rem);
    font-stretch: 86%;
    font-weight: 720;
    letter-spacing: -0.038em;
    line-height: 0.91;
    text-wrap: balance;
}

.hero h1 span {
    color: var(--accent);
}

.hero-lede {
    max-width: 535px;
    margin-top: 28px;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
    line-height: 1.48;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
}

.text-link {
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.text-link span {
    display: inline-block;
    margin-left: 4px;
    transition: transform 180ms ease-out;
}

.text-link:hover span {
    transform: translateY(3px);
}

.hero-art {
    position: relative;
    min-height: 660px;
    isolation: isolate;
}

.hero-art::before {
    content: '';
    position: absolute;
    inset: 6% 0 3% 8%;
    z-index: -2;
    border-radius: 50%;
    background: radial-gradient(circle at 52% 44%, #ffffff 0 35%, #e6eae6 68%, transparent 69%);
}

.hero-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(24, 61, 45, 0.19);
    border-radius: 50%;
}

.hero-orbit-one {
    inset: 10% 1% 9% 13%;
}

.hero-orbit-two {
    inset: 20% 11% 19% 23%;
}

.hero-card {
    position: absolute;
    overflow: hidden;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 6px 8px rgba(24, 38, 31, 0.18);
    transform-origin: center bottom;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-back {
    top: 13%;
    right: 0;
    width: 218px;
    aspect-ratio: 2 / 3;
    transform: rotate(9deg);
}

.hero-card-middle {
    top: 17%;
    left: 5%;
    width: 244px;
    aspect-ratio: 2 / 3;
    transform: rotate(-10deg);
}

.hero-card-front {
    top: 5%;
    left: 29%;
    z-index: 2;
    width: 292px;
    aspect-ratio: 2 / 3;
    transform: rotate(-1deg);
}

.privacy-note {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.privacy-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: var(--muted);
    font-size: 14px;
}

.privacy-inner strong {
    color: var(--ink);
    font-weight: 700;
}

.section-heading {
    display: flex;
    max-width: 760px;
    flex-direction: column;
    gap: 20px;
}

.section-heading h2,
.meaning h2,
.studio-heading h2,
.result-copy h2 {
    font-size: clamp(2.75rem, 5vw, 4.7rem);
    font-stretch: 89%;
    font-weight: 680;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-wrap: balance;
}

.section-heading p,
.meaning-grid > div > p {
    max-width: 630px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.55;
    text-wrap: pretty;
}

.collection {
    overflow: clip;
}

.collection-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
    align-items: end;
    gap: clamp(36px, 8vw, 110px);
}

.collection-intro h2 {
    max-width: 720px;
    font-size: clamp(2.75rem, 5vw, 4.7rem);
    font-stretch: 89%;
    font-weight: 680;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-wrap: balance;
}

.collection-intro p {
    max-width: 48ch;
    padding-bottom: 7px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
    text-wrap: pretty;
}

.design-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.43fr);
    min-height: 680px;
    margin-top: clamp(48px, 6vw, 72px);
    overflow: hidden;
    color: var(--surface);
    background: var(--ink);
    border-radius: var(--radius-medium);
}

.showcase-stage {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
    overflow: hidden;
    padding: clamp(42px, 6vw, 76px);
    background: var(--surface-soft);
    isolation: isolate;
}

.showcase-stage::before,
.showcase-stage::after {
    content: '';
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(24, 61, 45, 0.16);
    border-radius: 50%;
}

.showcase-stage::before {
    width: min(74%, 560px);
    aspect-ratio: 1;
}

.showcase-stage::after {
    width: min(52%, 390px);
    aspect-ratio: 1;
}

.showcase-stage > img {
    width: min(100%, 350px);
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--surface);
    box-shadow: 0 6px 8px rgba(20, 30, 25, 0.18);
    transition: opacity 180ms ease-out, transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-stage > img.is-changing {
    opacity: 0.35;
    transform: scale(0.985);
}

.showcase-controls {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(34px, 4vw, 54px);
}

.showcase-status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.showcase-status > p:first-child {
    color: #c4ccc7;
    font-size: 14px;
}

.showcase-status > p:last-child {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.showcase-status strong {
    color: var(--surface);
    font-size: 32px;
    font-weight: 650;
    line-height: 1;
}

.showcase-status span {
    color: #aeb8b2;
    font-size: 14px;
}

.collection-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
}

.collection-option {
    display: block;
    min-width: 0;
    padding: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    cursor: pointer;
    transition: border-color 180ms ease-out, background-color 180ms ease-out, transform 180ms ease-out;
}

.collection-option img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: 4px;
    object-fit: cover;
    background: var(--surface);
}

.collection-option:hover {
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
}

.collection-option.selected {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.collection-option:focus-visible {
    outline: 3px solid rgba(222, 91, 11, 0.58);
    outline-offset: 3px;
}

.showcase-note {
    margin-top: 24px;
    color: #c4ccc7;
    font-size: 14px;
    line-height: 1.5;
}

.showcase-cta {
    width: 100%;
    margin-top: auto;
}

.meaning {
    background: var(--surface-soft);
}

.meaning-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(40px, 8vw, 120px);
}

.meaning-intro {
    padding-top: 9px;
    color: var(--accent-dark);
    font-size: 17px;
    font-weight: 700;
}

.meaning h2 {
    max-width: 870px;
    font-size: clamp(2.5rem, 4.5vw, 4.35rem);
}

.meaning-grid > div > p {
    margin-top: 30px;
}

.process-heading {
    gap: 12px;
}

.process-list {
    margin-top: 66px;
    border-top: 1px solid var(--line-strong);
    list-style: none;
}

.process-list li {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: clamp(20px, 5vw, 76px);
    padding-block: 30px 34px;
    border-bottom: 1px solid var(--line);
}

.process-number {
    color: var(--accent);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.process-list h3 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-stretch: 92%;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.process-list p {
    max-width: 560px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 17px;
}

.studio {
    background: #e5e9e5;
}

.studio-shell {
    display: grid;
    gap: 58px;
}

.studio-heading {
    display: grid;
    grid-template-columns: 0.5fr 1fr auto;
    align-items: end;
    gap: 30px;
}

.studio-heading > p {
    color: var(--accent-dark);
    font-size: 17px;
    font-weight: 700;
}

.studio-heading > span {
    padding-bottom: 7px;
    color: var(--muted);
    font-size: 15px;
}

.studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
    min-width: 0;
    min-height: 720px;
    border-top: 1px solid var(--line-strong);
}

.studio-preview {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
    padding: 32px clamp(30px, 5vw, 70px) 26px 0;
    border-right: 1px solid var(--line-strong);
}

.preview-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
}

.preview-meta span,
.preview-tip {
    color: var(--muted);
}

.preview-meta strong {
    color: var(--ink);
    font-size: 16px;
}

.preview-frame {
    display: grid;
    place-items: center;
    min-height: 0;
    padding-block: 26px;
}

.live-card {
    --photo-left: 32.62%;
    --photo-top: 39.19%;
    --photo-width: 34.77%;
    --photo-height: 23.18%;
    --photo-radius: 50%;
    --name-top: 64.78%;
    --name-left: 50%;
    --name-width: 37.5%;
    --name-color: #0b2a58;
    --name-bg: rgba(248, 244, 236, 0.94);
    --name-size: 4cqi;
    position: relative;
    container-type: inline-size;
    width: min(100%, 340px);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #f4f1e9;
    box-shadow: 0 6px 8px rgba(22, 37, 29, 0.17);
}

.live-photo-area {
    position: absolute;
    top: var(--photo-top);
    left: var(--photo-left);
    z-index: 0;
    display: grid;
    width: var(--photo-width);
    height: var(--photo-height);
    place-items: center;
    overflow: hidden;
    color: #5f6763;
    background: #dfe3df;
    border-radius: var(--photo-radius);
    font-size: 4cqi;
    font-weight: 650;
}

.live-photo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
}

.live-photo-area img[hidden] {
    display: none;
}

.live-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.live-name {
    position: absolute;
    top: var(--name-top);
    left: var(--name-left);
    z-index: 2;
    width: var(--name-width);
    padding: 0.22em 0.45em;
    overflow: hidden;
    color: var(--name-color);
    background: var(--name-bg);
    border-radius: 999px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: var(--name-size);
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.preview-tip {
    font-size: 13px;
}

.create-panel {
    min-width: 0;
    align-self: stretch;
    padding: 34px 0 18px clamp(34px, 5vw, 78px);
}

.panel-header {
    max-width: 520px;
    margin-bottom: 32px;
}

.panel-header h3 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-stretch: 92%;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.panel-header p {
    max-width: 46ch;
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
}

.field-group {
    max-width: 600px;
    margin-bottom: 25px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.upload-zone {
    display: grid;
    width: 100%;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 12px 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    cursor: pointer;
    text-align: left;
    transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

.upload-zone:hover,
.upload-zone.dragover {
    background: var(--surface);
    border-color: var(--accent);
}

.upload-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: 7px;
    object-fit: cover;
}

.upload-thumbnail[hidden] {
    display: none;
}

.upload-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.upload-text {
    font-size: 16px;
    font-weight: 700;
}

.upload-subtext {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.upload-action {
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.upload-zone.has-photo {
    background: var(--surface);
    border-color: var(--success);
}

.form-input {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    font-size: 16px;
    transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

.form-input:hover,
.form-input:focus {
    background: var(--surface);
    border-color: var(--accent);
    outline: none;
}

.form-input[aria-invalid='true'] {
    border-color: var(--danger);
}

.form-input::placeholder {
    color: #626a66;
    opacity: 1;
}

.form-hint {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.template-fieldset {
    width: 100%;
    max-width: 100%;
    min-inline-size: 0;
    border: 0;
}

.template-slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.template-slot {
    display: block;
    min-width: 0;
    padding: 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: border-color 180ms ease-out, background-color 180ms ease-out, transform 180ms ease-out;
}

.template-slot img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 4px;
    object-fit: cover;
    background: var(--surface);
}

.template-slot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.template-slot.selected {
    background: var(--surface);
    border-color: var(--ink);
}

.generate-button {
    position: relative;
    width: min(100%, 600px);
    overflow: hidden;
}

.generate-button::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.82);
    transform: scaleX(0);
    transform-origin: left;
}

.generate-button.is-generating::after {
    animation: generate-progress 1.3s ease-in-out infinite;
}

.generate-button:disabled {
    cursor: wait;
    opacity: 0.84;
}

.status-msg {
    min-height: 22px;
    max-width: 600px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.status-msg.status-error {
    color: var(--danger);
}

.status-msg.status-success {
    color: var(--success);
}

.preview-section {
    display: none;
    padding-block: clamp(88px, 10vw, 140px);
    background: var(--surface);
}

.preview-section.active {
    display: block;
}

.result-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(360px, 1.3fr);
    align-items: center;
    gap: clamp(48px, 10vw, 140px);
}

.result-copy > p {
    color: var(--accent-dark);
    font-weight: 700;
}

.result-copy h2 {
    margin-top: 13px;
}

.result-copy > span {
    display: block;
    max-width: 37ch;
    margin-top: 22px;
    color: var(--muted);
    font-size: 17px;
}

.preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.generated-card {
    display: grid;
    place-items: center;
}

.generated-img {
    width: min(100%, 520px);
    box-shadow: 0 6px 8px rgba(21, 35, 29, 0.18);
}

.tool-guide {
    background: var(--surface);
}

.tool-guide-shell {
    display: grid;
    gap: clamp(62px, 8vw, 104px);
}

.tool-guide-intro {
    display: grid;
    grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
    align-items: start;
    gap: 22px clamp(42px, 8vw, 118px);
}

.tool-guide-intro > p:first-child {
    padding-top: 9px;
    color: var(--accent-dark);
    font-size: 17px;
    font-weight: 700;
}

.tool-guide-intro h2 {
    max-width: 900px;
    font-size: clamp(2.65rem, 4.7vw, 4.5rem);
    font-stretch: 89%;
    font-weight: 680;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-wrap: balance;
}

.tool-guide-intro > p:last-child {
    grid-column: 2;
    max-width: 70ch;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.65;
    text-wrap: pretty;
}

.tool-guide a:not(.button) {
    color: var(--ink);
    font-weight: 650;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.tool-guide-list {
    border-top: 1px solid var(--line-strong);
}

.tool-guide-list article {
    display: grid;
    grid-template-columns: minmax(240px, 0.52fr) minmax(0, 1fr);
    gap: clamp(34px, 7vw, 100px);
    padding-block: clamp(34px, 5vw, 58px);
    border-bottom: 1px solid var(--line);
}

.tool-guide-list h3 {
    max-width: 16ch;
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    font-stretch: 92%;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-wrap: balance;
}

.tool-guide-list article > div {
    display: grid;
    max-width: 70ch;
    gap: 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.tool-guide-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 5vw, 52px);
    color: var(--surface);
    background: var(--ink);
    border-radius: var(--radius-medium);
}

.tool-guide-cta p {
    max-width: 24ch;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-stretch: 92%;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.06;
}

.faq {
    background: var(--surface-soft);
}

.faq-shell {
    display: grid;
    gap: clamp(54px, 7vw, 88px);
}

.faq-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.58fr);
    align-items: end;
    gap: 28px clamp(48px, 8vw, 112px);
}

.faq-intro > div > p {
    margin-bottom: 14px;
    color: var(--accent-dark);
    font-size: 16px;
    font-weight: 700;
}

.faq-intro h2 {
    max-width: 850px;
    font-size: clamp(2.65rem, 4.6vw, 4.35rem);
    font-stretch: 89%;
    font-weight: 680;
    letter-spacing: -0.035em;
    line-height: 1;
    text-wrap: balance;
}

.faq-intro > p {
    max-width: 42ch;
    padding-bottom: 5px;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.6;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(42px, 6vw, 76px);
}

.faq-column {
    border-top: 1px solid var(--line-strong);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item h3 {
    font: inherit;
}

.faq-question {
    display: grid;
    width: 100%;
    min-height: 88px;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 24px;
    padding: 23px 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
    text-align: left;
    transition: color 180ms ease-out;
}

.faq-question:hover,
.faq-question[aria-expanded='true'] {
    color: var(--accent-dark);
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
}

.faq-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.faq-icon::before,
.faq-icon::after {
    position: absolute;
    top: 11px;
    left: 4px;
    width: 16px;
    height: 2px;
    background: currentColor;
    content: '';
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease-out;
}

.faq-icon::after {
    transform: rotate(90deg);
}

.faq-question[aria-expanded='true'] .faq-icon::after {
    opacity: 0;
    transform: rotate(0deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 280ms;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-answer p {
    max-width: 65ch;
    padding: 0 48px 25px 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    visibility: visible;
    transition-delay: 0s;
}

.site-footer {
    color: #f4f5f2;
    background: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: clamp(64px, 10vw, 150px);
    padding-block: clamp(56px, 7vw, 88px);
}

.footer-brand {
    color: #f4f5f2;
}

.footer-summary > p {
    max-width: 46ch;
    margin-top: 22px;
    color: #bbc3be;
    font-size: 16px;
    line-height: 1.6;
}

.footer-cta {
    display: inline-block;
    margin-top: 26px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}

.footer-nav > div {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
}

.footer-nav h2 {
    margin-bottom: 5px;
    color: #bbc3be;
    font-size: 13px;
    font-weight: 700;
}

.footer-nav a {
    color: #ffffff;
    font-size: 15px;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: color 180ms ease-out, text-decoration-color 180ms ease-out;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: #ffffff;
    text-decoration-color: var(--accent);
}

.footer-bottom {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #bbc3be;
    border-top: 1px solid #38403c;
    font-size: 13px;
}

.info-main {
    min-height: calc(100vh - 74px);
}

.info-hero {
    padding-block: clamp(82px, 10vw, 138px) clamp(58px, 7vw, 94px);
    background: var(--surface-soft);
}

.info-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
    align-items: end;
    gap: 36px clamp(48px, 9vw, 130px);
}

.info-hero h1,
.error-page h1 {
    max-width: 850px;
    font-size: clamp(3.4rem, 7vw, 6rem);
    font-stretch: 88%;
    font-weight: 690;
    letter-spacing: -0.04em;
    line-height: 0.94;
    text-wrap: balance;
}

.info-hero p {
    max-width: 42ch;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.6;
}

.info-body {
    padding-block: clamp(64px, 8vw, 112px);
    background: var(--surface);
}

.info-layout {
    display: grid;
    grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
    gap: 44px clamp(56px, 10vw, 140px);
}

.info-aside {
    color: var(--accent-dark);
    font-size: 15px;
    font-weight: 700;
}

.info-content {
    display: grid;
    max-width: 760px;
    gap: 42px;
}

.info-content section {
    display: grid;
    gap: 14px;
}

.info-content h2 {
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    font-stretch: 92%;
    font-weight: 660;
    letter-spacing: -0.025em;
    line-height: 1.08;
    text-wrap: balance;
}

.info-content p,
.info-content li {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.info-content ul {
    display: grid;
    gap: 8px;
    padding-left: 22px;
}

.info-content a {
    color: var(--ink);
    font-weight: 650;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

.error-page {
    display: grid;
    min-height: calc(100vh - 74px);
    place-items: center;
    padding-block: 80px;
    background: var(--surface-soft);
}

.error-inner {
    display: grid;
    justify-items: start;
    gap: 24px;
}

.error-code {
    color: var(--accent-dark);
    font-size: 16px;
    font-weight: 700;
}

.error-page p:not(.error-code) {
    max-width: 52ch;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

@keyframes hero-copy-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes card-settle-front {
    from { opacity: 0; transform: translateY(36px) rotate(3deg) scale(0.96); }
    to { opacity: 1; transform: translateY(0) rotate(-1deg) scale(1); }
}

@keyframes card-settle-middle {
    from { opacity: 0; transform: translateX(24px) rotate(-4deg); }
    to { opacity: 1; transform: translateX(0) rotate(-10deg); }
}

@keyframes card-settle-back {
    from { opacity: 0; transform: translateX(-24px) rotate(4deg); }
    to { opacity: 1; transform: translateX(0) rotate(9deg); }
}

@keyframes generate-progress {
    0% { transform: scaleX(0); transform-origin: left; }
    55% { transform: scaleX(0.78); transform-origin: left; }
    56% { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * {
        animation: hero-copy-in 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .hero-copy > :nth-child(2) { animation-delay: 70ms; }
    .hero-copy > :nth-child(3) { animation-delay: 130ms; }
    .hero-copy > :nth-child(4) { animation-delay: 190ms; }
    .hero-card-front { animation: card-settle-front 780ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both; }
    .hero-card-middle { animation: card-settle-middle 760ms 260ms cubic-bezier(0.16, 1, 0.3, 1) both; }
    .hero-card-back { animation: card-settle-back 760ms 330ms cubic-bezier(0.16, 1, 0.3, 1) both; }
}

@media (max-width: 1040px) {
    .hero-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
        gap: 40px;
    }

    .hero-art {
        min-height: 580px;
        transform: scale(0.9);
    }

    .studio-grid {
        grid-template-columns: minmax(0, 0.78fr) minmax(400px, 1.22fr);
    }
}

@media (max-width: 820px) {
    .shell {
        width: min(calc(100% - 36px), 720px);
    }

    .primary-nav {
        display: none;
    }

    .header-cta {
        margin-left: auto;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-copy {
        max-width: 650px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 12vw, 5rem);
    }

    .hero-art {
        width: min(100%, 620px);
        min-height: 590px;
        margin-inline: auto;
        transform: none;
    }

    .privacy-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding-block: 18px;
    }

    .collection-intro {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .collection-intro p {
        max-width: 620px;
    }

    .design-showcase {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .showcase-stage {
        min-height: 560px;
    }

    .showcase-stage > img {
        width: min(100%, 310px);
    }

    .collection-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .showcase-cta {
        margin-top: 34px;
    }

    .meaning-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .studio-heading {
        grid-template-columns: 1fr auto;
    }

    .studio-heading h2 {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .studio-grid {
        grid-template-columns: 1fr;
    }

    .studio-preview {
        min-height: 620px;
        padding: 30px 0 34px;
        border-right: 0;
        border-bottom: 1px solid var(--line-strong);
    }

    .create-panel {
        padding: 38px 0 0;
    }

    .field-group,
    .generate-button,
    .status-msg {
        max-width: none;
    }

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

    .tool-guide-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-guide-intro > p:first-child {
        padding-top: 0;
    }

    .tool-guide-intro > p:last-child {
        grid-column: auto;
    }

    .tool-guide-list article {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-guide-list h3 {
        max-width: 22ch;
    }

    .faq-intro {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 20px;
    }

    .faq-intro > p {
        max-width: 620px;
        padding-bottom: 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .faq-column + .faq-column {
        border-top: 0;
    }

    .generated-card {
        justify-content: start;
    }

    .footer-grid,
    .info-hero-inner,
    .info-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 50px;
    }

    .info-layout {
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(calc(100% - 28px), 520px);
    }

    .section {
        padding-block: 82px;
    }

    .header-inner {
        min-height: 68px;
        gap: 12px;
    }

    .brand-name {
        font-size: 17px;
        white-space: nowrap;
    }

    .header-cta {
        min-width: 78px;
        min-height: 44px;
        padding-inline: 15px;
        font-size: 13px;
    }

    .header-cta-long {
        display: none;
    }

    .header-cta-short {
        display: inline;
    }

    .hero {
        min-height: auto;
        padding-top: 58px;
    }

    .hero-kicker {
        margin-bottom: 18px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 16vw, 4.4rem);
        line-height: 0.93;
    }

    .hero-lede {
        margin-top: 22px;
        font-size: 17px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        margin-top: 30px;
    }

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

    .text-link {
        text-align: center;
    }

    .hero-art {
        min-height: 455px;
    }

    .hero-card-front {
        left: 27%;
        width: 205px;
    }

    .hero-card-middle {
        top: 18%;
        left: 0;
        width: 174px;
    }

    .hero-card-back {
        top: 16%;
        width: 154px;
    }

    .section-heading h2,
    .meaning h2,
    .studio-heading h2,
    .result-copy h2 {
        font-size: clamp(2.55rem, 13vw, 3.45rem);
    }

    .section-heading p,
    .meaning-grid > div > p {
        font-size: 17px;
    }

    .collection-intro h2 {
        font-size: clamp(2.55rem, 13vw, 3.45rem);
    }

    .collection-intro p {
        font-size: 17px;
    }

    .design-showcase {
        margin-top: 38px;
    }

    .showcase-stage {
        min-height: 0;
        padding: 36px 22px;
    }

    .showcase-stage > img {
        width: min(76vw, 280px);
    }

    .showcase-controls {
        padding: 26px 22px 24px;
    }

    .showcase-status {
        padding-bottom: 20px;
    }

    .collection-options {
        gap: 8px;
        margin-top: 24px;
    }

    .collection-option {
        padding: 4px;
    }

    .showcase-note {
        margin-top: 18px;
    }

    .process-list {
        margin-top: 44px;
    }

    .process-list li {
        grid-template-columns: 48px 1fr;
        padding-block: 24px 28px;
    }

    .process-list h3 {
        font-size: 1.55rem;
    }

    .process-list p {
        font-size: 15px;
    }

    .studio-heading {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .studio-heading h2 {
        grid-column: auto;
        grid-row: auto;
    }

    .studio-heading > span {
        padding-bottom: 0;
    }

    .studio-shell {
        gap: 38px;
    }

    .studio-preview {
        min-height: 540px;
    }

    .live-card {
        width: min(100%, 285px);
    }

    .template-slots {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 12px;
        padding: 2px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .template-slots::-webkit-scrollbar {
        display: none;
    }

    .template-slot {
        flex: 0 0 clamp(86px, 25vw, 118px);
        scroll-snap-align: start;
    }

    .template-slot img {
        width: 100%;
    }

    .preview-actions {
        flex-direction: column;
    }

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

    .tool-guide-shell {
        gap: 54px;
    }

    .tool-guide-intro h2 {
        font-size: clamp(2.45rem, 12.5vw, 3.35rem);
    }

    .tool-guide-intro > p:last-child,
    .tool-guide-list article > div {
        font-size: 16px;
    }

    .tool-guide-list article {
        padding-block: 34px;
    }

    .tool-guide-list h3 {
        font-size: 1.65rem;
    }

    .tool-guide-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .tool-guide-cta .button {
        width: 100%;
        white-space: normal;
    }

    .faq-shell {
        gap: 48px;
    }

    .faq-intro h2 {
        font-size: clamp(2.35rem, 11.5vw, 3.2rem);
    }

    .faq-intro > p {
        font-size: 16px;
    }

    .faq-question {
        min-height: 76px;
        gap: 16px;
        padding-block: 19px;
        font-size: 16px;
    }

    .faq-answer p {
        padding: 0 32px 22px 0;
        font-size: 15px;
    }

    .footer-grid {
        padding-block: 48px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding-block: 20px;
    }

    .info-hero h1,
    .error-page h1 {
        font-size: clamp(3rem, 15vw, 4.25rem);
    }

    .info-hero p,
    .error-page p:not(.error-code),
    .info-content p,
    .info-content li {
        font-size: 16px;
    }

    .error-actions,
    .error-actions .button {
        width: 100%;
    }
}

@media (max-width: 820px) and (max-height: 540px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-block: 34px 44px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(290px, 0.82fr);
        gap: clamp(28px, 6vw, 56px);
    }

    .hero h1 {
        font-size: clamp(2.7rem, 7.2vw, 4.2rem);
    }

    .hero-lede {
        margin-top: 16px;
        font-size: 16px;
    }

    .hero-actions {
        align-items: center;
        flex-direction: row;
        gap: 18px;
        margin-top: 24px;
    }

    .hero-actions .button {
        width: auto;
    }

    .hero-art {
        min-height: 330px;
    }

    .hero-card-front {
        width: 185px;
    }

    .hero-card-middle {
        width: 160px;
    }

    .hero-card-back {
        width: 142px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
