/* /try page. Shared tokens and components live in /styles.css and /ads.css. */

.wrap-wide { width: min(1320px, 100% - 40px); }
.section-tight { padding-block: var(--s6) var(--section); }
.btn-block { width: 100%; }

/* Idle */
.try-hero { padding: clamp(40px, 6vw, 80px) 0 var(--s6); }
.try-hero h1 { max-width: 13ch; }
.try-hero .site-form { margin-top: var(--s6); }
.eyebrowless { font-size: var(--t-small); font-weight: 600; color: var(--muted); margin-bottom: var(--s4); }

/* Working */
.working { padding: clamp(32px, 5vw, 64px) 0 var(--section); }
.working-head { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center; justify-content: space-between; margin-bottom: var(--s5); }
.working-title { font-size: clamp(28px, 3.2vw, 40px); max-width: none; }
.working-title span { color: var(--green); }
.progress { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); padding: 0; }
.progress li { display: flex; align-items: center; gap: 10px; border: 0; padding: 0; font-size: var(--t-small); color: var(--soft); }
.progress li.active, .progress li.done { color: var(--ink); }
.progress li.active { font-weight: 600; }
.progress li.active .box { border-color: var(--green); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(30, 106, 72, 0.35); } to { box-shadow: 0 0 0 6px rgba(30, 106, 72, 0); } }

.skeleton { pointer-events: none; }
.skeleton > * { background: linear-gradient(90deg, #eef2ef 0%, #f7f9f8 40%, #eef2ef 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton .sk-top { height: 40px; margin: 14px 16px; border-radius: 999px; width: 55%; }
.skeleton .sk-line { height: 14px; margin: 0 16px 16px; border-radius: 6px; width: 80%; }
.skeleton .post-art { animation-duration: 1.6s; }
.skeleton .sk-bar { height: 60px; margin: 0; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Results */
.results { padding: clamp(32px, 5vw, 64px) 0 var(--section); }
.results-head { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); align-items: end; justify-content: space-between; padding-bottom: var(--s5); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); }
.results-head h2 { max-width: 22ch; font-size: clamp(30px, 3.6vw, 48px); }
.results-meta { margin-top: var(--s2); color: var(--muted); max-width: 46em; }
.results-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.thin-note { margin: 0 0 var(--s5); padding: 16px 20px; background: #fdf6e3; border-radius: var(--radius); color: #6b4a00; font-size: var(--t-small); max-width: 62em; }
.thin-note a { color: inherit; font-weight: 600; }

/* Brand kit */
.kit-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: var(--s3); background: var(--paper); }
.kit-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--hair); }
.kit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.7fr); gap: var(--s5); padding-top: var(--s4); }
.kit-label { font-size: var(--t-micro); font-weight: 700; color: var(--soft); margin-bottom: var(--s2); letter-spacing: 0.01em; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.swatch { display: grid; gap: 8px; cursor: pointer; }
.swatch input[type=color] { width: 100%; height: 56px; border: 1px solid var(--line); border-radius: 10px; padding: 0; background: none; cursor: pointer; }
.swatch input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input[type=color]::-webkit-color-swatch { border: 0; border-radius: 9px; }
.swatch input[type=color]::-moz-color-swatch { border: 0; border-radius: 9px; }
.sw-name { display: block; font-size: 13px; font-weight: 600; }
.sw-hex { width: 100%; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--soft); background: none; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.sw-hex:focus { outline: none; color: var(--ink); }
.found-colors { margin-top: var(--s3); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.found-colors button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.12); cursor: pointer; padding: 0; }
.font-pick { display: grid; gap: var(--s2); }
.font-pick select { min-height: 46px; }
.kit-note { margin-top: 10px; font-size: 13.5px; color: var(--soft); line-height: 1.45; }
.logo-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.kit-logo { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-weight: 700; background: var(--wash); color: var(--green-deep); flex: none; }
.kit-logo img { width: 100%; height: 100%; object-fit: contain; }
.kit-status { margin-top: var(--s2); font-size: 13.5px; color: var(--green-deep); min-height: 1em; }
@media (max-width: 1000px) { .kit-grid { grid-template-columns: 1fr; gap: var(--s4); } }
@media (max-width: 520px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Own photos */
.own-photos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); padding: 20px 24px; margin-bottom: var(--s5); border: 1.5px dashed #9fb2a6; border-radius: var(--radius-lg); background: var(--paper); }
.own-photos.has { border-style: solid; border-color: var(--green); background: var(--wash); }
.own-title { font-weight: 700; font-size: 17px; }
.own-sub { margin-top: 4px; font-size: var(--t-small); color: var(--muted); max-width: 44em; }
.own-btn { cursor: pointer; }

/* Grid extras */
.more-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s5); }
.post.kept { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.post .kept-badge { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--paper); background: var(--green); border-radius: 999px; padding: 3px 9px; }
.post-actions { flex-wrap: wrap; }
.post-links { display: flex; gap: var(--s3); padding: 0 16px 16px; }
.post-links button { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.post-links button:hover { color: var(--ink); }
.btn.is-on { background: var(--green); color: var(--paper); }

/* Swipe review */
.swipe { position: fixed; inset: 0; z-index: 50; background: #0f1713; color: var(--paper); display: grid; grid-template-rows: auto 1fr auto auto; padding: 16px 20px 24px; }
.swipe-top { display: flex; justify-content: space-between; align-items: center; width: min(560px, 100%); margin: 0 auto; }
.swipe-count { font-weight: 600; }
.swipe-stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 0; padding: 12px 0; touch-action: pan-y; }
.swipe-card { width: min(440px, 86vw, calc((100dvh - 420px) * 0.8)); transition: transform 0.25s ease, opacity 0.25s ease; will-change: transform; cursor: grab; }
.swipe-card.tall { width: min(360px, 86vw, calc((100dvh - 420px) * 0.56)); }
.swipe-card .post { border: 0; color: var(--ink); background: var(--paper); }
.swipe-card.go-right { transform: translateX(120%) rotate(12deg); opacity: 0; }
.swipe-card.go-left { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
.swipe-card .stamp-keep, .swipe-card .stamp-skip { position: absolute; top: 90px; z-index: 3; font-weight: 800; font-size: 22px; padding: 6px 14px; border-radius: 10px; border: 3px solid; opacity: 0; font-stretch: 112%; }
.swipe-card .stamp-keep { left: 18px; color: #7be0a8; border-color: #7be0a8; transform: rotate(-12deg); }
.swipe-card .stamp-skip { right: 18px; color: #ff9b8a; border-color: #ff9b8a; transform: rotate(12deg); }
.swipe-actions { position: relative; z-index: 2; display: flex; justify-content: center; gap: var(--s4); }
.swipe-btn { min-width: 150px; min-height: 56px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.swipe-btn.no { background: rgba(255, 255, 255, 0.12); color: var(--paper); }
.swipe-btn.keep { background: #7be0a8; color: #0c2a1c; }
.swipe-hint { text-align: center; font-size: 13.5px; color: #9fb2a6; margin-top: 10px; }
.swipe-done { text-align: center; max-width: 460px; }
.swipe-done h3 { font-size: 34px; color: var(--paper); }
.swipe-done p { margin-top: 12px; color: #c7d3cc; }
.swipe-done .row { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); max-width: calc(100% - 32px); }

/* Launch */
.launch-form .btn { width: 100%; }
.launch-share { margin-top: var(--s4); }

/* Sticky launch bar */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: var(--paper); transform: translateY(0); transition: transform 0.25s ease; }
.stickybar.off { transform: translateY(110%); }
.stickybar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 14px 0; }
.stickybar p { font-weight: 600; font-size: 16px; }
.stickybar-actions { display: flex; align-items: center; gap: var(--s2); }
.stickybar .btn { background: var(--paper); color: var(--ink); }
.stickybar .btn:hover { background: #dfe9e3; }
.sticky-close { width: 40px; height: 40px; border: 0; background: transparent; color: #b9c8bf; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 8px; }
.sticky-close:hover { color: var(--paper); background: rgba(255, 255, 255, 0.08); }
body.has-sticky .foot { padding-bottom: 120px; }

@media (max-width: 720px) {
  .wrap-wide { width: calc(100% - 32px); }
  .working-head { margin-bottom: var(--s4); }
  .progress { gap: 8px 16px; }
  .results-actions .btn { flex: 1 1 auto; }
  .stickybar p { font-size: 15px; }
  .sb-name { display: none; }
}
.swipe.finished .swipe-actions, .swipe.finished .swipe-hint { visibility: hidden; }

/* Template workflow strip */
.flow { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.flow li { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; background: var(--paper); font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.flow li strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 3px; }
.flow-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--wash); color: var(--green-deep); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.flow li.done { border-color: var(--green); background: var(--wash); }
.flow li.done .flow-n { background: var(--green); color: var(--paper); font-size: 0; }
.flow li.done .flow-n::before { content: "✓"; font-size: 15px; }
.flow-beta { border-style: dashed !important; }
.flow .soon { font-style: normal; }
.kit-badge { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--paper); background: var(--green); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* Results: clear free vs paid */
.results-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: calc(var(--s4) * -1) 0 var(--s5); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: var(--t-small); font-weight: 600; color: var(--green-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.link-btn:hover { text-decoration-color: currentColor; }
.plan-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; margin: var(--s6) 0 0; scroll-margin-top: 24px; }
.results-free { margin-top: 10px; display: inline-block; font-size: 14px; color: var(--green-deep); background: var(--wash); padding: 7px 12px; border-radius: 8px; }
.results-free a { color: inherit; font-weight: 700; }
.plan-free, .plan-paid { border-radius: var(--radius-lg); padding: 24px 26px; }
.plan-free { background: var(--wash); }
.plan-paid { background: var(--paper); border: 1.5px solid var(--green); box-shadow: 0 18px 40px -26px rgba(30,106,72,.5); }
.plan-k { font-weight: 800; font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan-k span { font-size: 12.5px; font-weight: 700; color: var(--green-deep); background: var(--wash); padding: 3px 9px; border-radius: 999px; }
.plan-price { margin-top: 8px; color: var(--muted); }
.plan-price strong { font-size: 34px; letter-spacing: -0.03em; color: var(--ink); margin-right: 4px; }
.plan-price em { font-style: normal; font-size: 14px; color: var(--soft); margin-left: 4px; }
.plan-split ul { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; gap: 8px; }
.plan-split li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink); line-height: 1.4; }
.plan-split li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan-foot { font-size: 13.5px; color: var(--soft); margin-top: 10px; }
.tweak { margin-top: var(--s6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.tweak > summary { cursor: pointer; list-style: none; padding: 18px 24px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.tweak > summary::-webkit-details-marker { display: none; }
.tweak > summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--soft); }
.tweak[open] > summary::after { content: "–"; }
.tweak > .kit-panel, .tweak > .own-photos { margin: 0 16px 16px; }
@media (max-width: 800px) { .plan-split { grid-template-columns: 1fr; } .plan-paid { order: -1; } }

/* Post sheet */
.ps { position: fixed; inset: 0; z-index: 60; background: rgba(15,25,20,.55); display: grid; place-items: center; padding: 16px; }
.ps[hidden] { display: none; }
.ps-card { position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: 22px; padding: 28px; box-shadow: 0 40px 80px rgba(0,0,0,.3); }
.ps-card h2 { font-size: 28px; max-width: none; }
.ps-x { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 32px; line-height: 1; cursor: pointer; color: var(--soft); padding: 6px 10px; }
.ps-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; margin-top: 18px; }
.ps-thumb { width: 100%; border-radius: 12px; background: var(--wash); aspect-ratio: 4/5; object-fit: cover; }
.ps-main { display: grid; gap: 14px; align-content: start; }
.ps-k { font-weight: 800; font-size: 15px; }
.ps-accts { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-accts label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ps-accts label:has(input:checked) { border-color: var(--green); background: var(--wash); }
.ps-accts small { color: var(--soft); font-weight: 500; }
.ps-connect { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ps-note { font-size: 14.5px; color: var(--muted); }
.ps textarea, .ps input[type=text], .ps input:not([type]), .ps input[type=datetime-local] { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
.ps-reddit { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.ps-reddit[hidden] { display: none; }
.ps-when { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 15px; font-weight: 600; }
.ps-when input[type=datetime-local] { width: auto; }
.ps-ok { padding: 14px 16px; border-radius: 12px; background: var(--wash); color: var(--green-deep); font-weight: 600; font-size: 15px; }
@media (max-width: 700px) { .ps-body { grid-template-columns: 1fr; } .ps-thumb { max-width: 220px; } .ps-reddit { grid-template-columns: 1fr; } }

/* Photo gate: no type-only ads */
.photo-gate { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 40px 44px; border-radius: 22px; background: var(--paper); border: 2px dashed var(--green); margin-bottom: var(--s5); }
.photo-gate[hidden] { display: none; }
.pg-copy h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
.pg-copy p { margin-top: 12px; color: var(--muted); max-width: 46em; font-size: 16.5px; line-height: 1.5; }
.pg-copy .pg-tip { font-size: 14.5px; color: var(--soft); }
.pg-btn { min-height: 56px; padding: 0 28px; font-size: 17px; }
.pg-ghost { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pg-ghost span { aspect-ratio: 4/5; border-radius: 14px; background: linear-gradient(135deg, var(--wash), #f7faf8); border: 1px solid var(--line); }
@media (max-width: 700px) { .photo-gate { grid-template-columns: 1fr; padding: 26px 22px; } .pg-btn { width: 100%; justify-content: center; } }
.ms-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ms-opts select, .ms-opts input { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
.ms-plan { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.ms-plan li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 12px; font-size: 14.5px; }
.ms-plan li b { width: 120px; flex: none; }
.ms-plan li span { color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-plan li em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--green); }
@media (max-width: 600px) { .ms-opts { grid-template-columns: 1fr 1fr; } .ms-plan li b { width: 96px; } }
