:root {
    --ink: #1d1d1b;
    --paper: #f4f1e9;
    --cream: #fffdf7;
    --acid: #d9ff43;
    --blue: #4767ff;
    --coral: #ff745e;
    --line: rgba(29, 29, 27, .18);
    --muted: #686861;
    --radius: 20px;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
    width: min(1440px, calc(100% - 48px));
    height: 82px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: max-content;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.04em;
    text-decoration: none;
}
.brand > span:last-child > span { font-weight: 400; }
.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; transform: rotate(-8deg); }
.brand-mark i { display: block; border-radius: 2px; background: var(--ink); }
.brand-mark i:nth-child(1) { height: 56%; align-self: end; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 74%; align-self: center; background: var(--blue); }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
    position: relative;
    color: #494944;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--ink); transition: right .2s ease; }
.site-header nav a:hover::after, .site-header nav a[aria-current="page"]::after { right: 0; }
.header-cta { justify-self: end; font-size: 13px; font-weight: 750; text-decoration: none; }
.header-cta span { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-left: 6px; border-radius: 50%; background: var(--ink); color: white; }

.hero {
    width: min(1380px, calc(100% - 48px));
    min-height: 650px;
    margin: 0 auto;
    padding: 88px 4vw 84px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    align-items: center;
    gap: 8vw;
}
.eyebrow { margin: 0 0 23px; display: flex; align-items: center; gap: 9px; color: #575750; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 2px; background: currentColor; }
.hero h1, .section-heading h2, .benefit-intro h2, .faq-section h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -.052em;
    line-height: .93;
}
.hero h1 { max-width: 730px; font-size: clamp(58px, 7vw, 106px); }
.hero-intro { max-width: 610px; margin: 30px 0 0; color: #55554f; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 24px; }
.button { border: 0; cursor: pointer; text-decoration: none; font-weight: 750; }
.button-primary { display: inline-flex; align-items: center; gap: 28px; padding: 16px 20px; border-radius: 6px; background: var(--ink); color: white; box-shadow: 5px 5px 0 var(--acid); }
.button-primary span { font-size: 18px; }
.privacy-note { color: #66665f; font-size: 12px; font-weight: 650; }
.privacy-note i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #4f9a4d; }

.hero-art { position: relative; min-height: 480px; }
.art-card { position: absolute; border: 1px solid rgba(29,29,27,.18); box-shadow: 0 28px 60px rgba(37, 34, 25, .13); }
.art-card-back { width: 62%; aspect-ratio: 4/5; top: 4%; left: 5%; display: grid; place-items: center; transform: rotate(-8deg); background: var(--blue); color: rgba(255,255,255,.16); font-size: 56px; font-weight: 900; writing-mode: vertical-rl; }
.art-card-front { width: 67%; aspect-ratio: 4/5; right: 4%; top: 4%; padding: 10%; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(5deg); background: #ffcf5c; }
.art-card-front::before { content: "“"; position: absolute; top: 8%; right: 9%; color: rgba(29,29,27,.2); font-family: Georgia, serif; font-size: 90px; line-height: 1; }
.art-kicker { font-size: 9px; font-weight: 850; letter-spacing: .18em; }
.art-card-front strong { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(26px, 3vw, 48px); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; }
.art-line { width: 42%; height: 5px; background: var(--ink); }
.spark { position: absolute; z-index: 4; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.spark-one { width: 56px; height: 56px; left: 2%; bottom: 8%; border-radius: 50%; font-size: 25px; }
.spark-two { width: 46px; height: 46px; right: 0; top: 0; transform: rotate(9deg); font-size: 20px; }

.editor-section { padding: 90px max(24px, calc((100vw - 1320px)/2)) 110px; background: #1e201e; color: white; }
.section-heading { margin-bottom: 48px; display: grid; grid-template-columns: 1fr 1.2fr .8fr; align-items: end; gap: 30px; }
.section-heading .eyebrow { align-self: start; color: #b9b9af; }
.section-heading h2 { font-size: clamp(45px, 5vw, 76px); }
.section-heading > p:last-child { margin: 0; max-width: 300px; justify-self: end; color: #aaa9a1; font-size: 14px; }
.studio { overflow: hidden; display: grid; grid-template-columns: minmax(380px, .82fr) minmax(500px, 1.18fr); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: #292b29; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.controls-panel { min-width: 0; background: #f7f4ed; color: var(--ink); }
.control-step { display: grid; grid-template-columns: 42px 1fr; gap: 11px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.step-number { padding-top: 2px; color: #88877f; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.step-content { min-width: 0; position: relative; }
.step-content > label, .label-row > span { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.step-content label small { color: #929189; font-weight: 500; text-transform: none; letter-spacing: 0; }
textarea, input[type="text"], select { width: 100%; color: var(--ink); background: white; border: 1px solid #cdcbc2; border-radius: 7px; outline: none; transition: border .15s, box-shadow .15s; }
textarea { min-height: 128px; padding: 14px 15px 26px; resize: vertical; font-family: var(--serif); font-size: 20px; line-height: 1.35; }
input[type="text"], select { height: 43px; padding: 0 12px; font-size: 13px; }
textarea:focus, input[type="text"]:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(71,103,255,.12); }
.character-count { position: absolute; right: 9px; bottom: 8px; color: #99978f; font-size: 9px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row small { color: #7d7c75; font-size: 10px; }
.template-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.template-option { position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; cursor: pointer; background: var(--thumb-bg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.template-option::before { content: "Aa"; position: absolute; left: 12%; bottom: 11%; color: var(--thumb-fg); font-family: var(--thumb-font, Georgia, serif); font-size: clamp(14px, 1.5vw, 22px); font-weight: 750; }
.template-option::after { content: ""; position: absolute; width: 60%; height: 4px; left: 12%; top: 15%; background: var(--thumb-accent); transform: rotate(var(--thumb-rotate, 0deg)); }
.template-option.active { border-color: var(--ink); box-shadow: 0 0 0 2px #f7f4ed, 0 0 0 4px var(--ink); }
.palette-list { display: flex; gap: 11px; flex-wrap: wrap; }
.palette-button { width: 31px; height: 31px; padding: 3px; border: 1px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; }
.palette-button span { display: block; width: 100%; height: 100%; border: 2px solid white; border-radius: 50%; background: linear-gradient(135deg, var(--c1) 0 49%, var(--c2) 51%); box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.palette-button.active { border-color: var(--ink); }
.split-controls { grid-template-columns: 42px 1.3fr .8fr; }
.align-control { padding-left: 9px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); height: 43px; padding: 3px; border: 1px solid #cdcbc2; border-radius: 7px; background: white; }
.segmented button { border: 0; border-radius: 4px; background: transparent; color: #85837c; cursor: pointer; font-weight: 900; line-height: 1; }
.segmented button:nth-child(1) { text-align: left; }
.segmented button:nth-child(3) { text-align: right; }
.segmented button.active { background: var(--ink); color: white; }
.photo-control { padding: 18px 26px 20px 79px; display: flex; align-items: center; gap: 10px; }
.upload-button { flex: 1; min-height: 48px; padding: 9px 13px; display: flex; align-items: center; gap: 9px; border: 1px dashed #aaa89e; border-radius: 7px; background: transparent; color: #3b3b37; cursor: pointer; font-size: 12px; font-weight: 750; text-align: left; }
.upload-button span { font-size: 20px; font-weight: 400; }
.upload-button small { margin-left: auto; color: #929088; font-size: 9px; font-weight: 500; }
.remove-photo { border: 0; background: none; color: #a14438; cursor: pointer; font-size: 10px; text-decoration: underline; }

.preview-panel { min-width: 0; padding: 23px 28px 20px; display: grid; grid-template-rows: auto minmax(440px, 1fr) auto auto; background: #262826; }
.preview-toolbar { padding: 0 0 17px; display: flex; justify-content: space-between; color: #aaa9a2; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.preview-toolbar i { display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); }
.canvas-stage { min-width: 0; min-height: 440px; padding: 28px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background-color: #191b19; background-image: linear-gradient(45deg, #202220 25%, transparent 25%), linear-gradient(-45deg, #202220 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #202220 75%), linear-gradient(-45deg, transparent 75%, #202220 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0px; }
#design-canvas { display: block; max-width: 100%; max-height: 620px; width: auto; height: auto; background: white; box-shadow: 0 20px 55px rgba(0,0,0,.4); }
.download-bar { padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; }
.format-buttons { display: flex; align-items: center; gap: 6px; }
.format-buttons button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; background: transparent; color: #92928b; cursor: pointer; font-size: 9px; font-weight: 800; }
.format-buttons button.active { border-color: white; background: white; color: var(--ink); }
.download-button { min-width: 210px; padding: 13px 18px; display: flex; justify-content: space-between; border-radius: 6px; background: var(--acid); color: var(--ink); }
.local-note { margin: 11px 0 0; color: #777872; font-size: 9px; text-align: right; }

.benefits { padding: 110px max(24px, calc((100vw - 1260px)/2)); }
.benefit-intro { max-width: 830px; }
.benefit-intro h2, .faq-section h2 { font-size: clamp(48px, 5.5vw, 80px); }
.benefit-intro > p:last-child { max-width: 640px; margin: 25px 0 0; color: var(--muted); font-size: 18px; }
.feature-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid article { min-height: 265px; padding: 25px 34px 38px 0; border-right: 1px solid var(--line); }
.feature-grid article + article { padding-left: 34px; }
.feature-grid article:last-child { border-right: 0; }
.feature-grid article > span { color: #94928a; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.feature-grid h3 { margin: 70px 0 12px; font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.faq-section { padding: 105px max(24px, calc((100vw - 1260px)/2)); display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; background: #e8e2d5; }
.faq-list { border-top: 1px solid rgba(29,29,27,.25); }
details { border-bottom: 1px solid rgba(29,29,27,.25); }
summary { padding: 23px 0; display: flex; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary span { transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
details p { margin: -7px 50px 22px 0; color: #5f5e57; font-size: 14px; }

footer { padding: 55px max(24px, calc((100vw - 1320px)/2)); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; background: var(--ink); color: white; }
.footer-brand .brand-mark i { background: white; }
.footer-brand .brand-mark i:last-child { background: var(--acid); }
footer > p { margin: 0; justify-self: end; color: #aaa9a1; font-family: var(--serif); font-style: italic; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { color: #aaa9a1; font-size: 11px; text-decoration: none; }
footer nav a:hover { color: white; }
footer small { justify-self: end; color: #77766f; font-size: 10px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 25px; padding: 11px 17px; transform: translate(-50%, 30px); border-radius: 6px; background: var(--ink); color: white; box-shadow: 0 10px 35px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: .25s ease; font-size: 12px; font-weight: 700; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
    .site-header { grid-template-columns: 1fr auto; }
    .site-header nav { display: none; }
    .hero { grid-template-columns: 1fr .75fr; gap: 30px; }
    .studio { grid-template-columns: 1fr; }
    .preview-panel { min-height: 750px; }
    .section-heading { grid-template-columns: .6fr 1.4fr; }
    .section-heading > p:last-child { display: none; }
}

@media (max-width: 740px) {
    .site-header { width: calc(100% - 30px); height: 70px; }
    .header-cta { font-size: 0; }
    .header-cta span { font-size: 13px; }
    .hero { width: calc(100% - 30px); min-height: auto; padding: 62px 5px 75px; grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(54px, 17vw, 76px); }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
    .hero-art { min-height: 430px; margin-top: 25px; }
    .editor-section { padding-top: 70px; }
    .section-heading { grid-template-columns: 1fr; gap: 10px; }
    .section-heading h2 { font-size: 48px; }
    .studio { border-radius: 12px; }
    .control-step { grid-template-columns: 29px 1fr; padding: 22px 16px; }
    .template-grid { grid-template-columns: repeat(5, 1fr); }
    .split-controls { grid-template-columns: 29px 1fr; }
    .split-controls .align-control { grid-column: 2; padding: 8px 0 0; }
    .photo-control { padding-left: 56px; }
    .upload-button small { display: none; }
    .preview-panel { min-height: 590px; padding: 19px 14px; grid-template-rows: auto minmax(340px, 1fr) auto auto; }
    .canvas-stage { min-height: 340px; padding: 16px; }
    #design-canvas { max-height: 480px; }
    .download-bar { flex-direction: column; }
    .download-button { width: 100%; }
    .local-note { text-align: center; }
    .benefits { padding-top: 80px; padding-bottom: 80px; }
    .benefit-intro h2, .faq-section h2 { font-size: 50px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid article, .feature-grid article + article { min-height: auto; padding: 25px 0 34px; border-right: 0; border-bottom: 1px solid var(--line); }
    .feature-grid article:last-child { border-bottom: 0; }
    .feature-grid h3 { margin-top: 32px; }
    .faq-section { padding-top: 80px; padding-bottom: 80px; grid-template-columns: 1fr; }
    footer { grid-template-columns: 1fr; }
    footer > p, footer small { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
