/* WildTwin: built on look.css (its tokens and parts). The page's own composition, the phone, the drawn scene. */
:root {
  --leaf: #5f9a4a; --leaf-2: #83b866; --grass: #d6e8bd; --water: #a9d5e2; --path: #f6dfc3; --bark: #8a5a3b;
  --night: #2b2118; --tint-2: color-mix(in srgb, var(--accent) 22%, var(--bg));
}
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); }
html { scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--bg)) var(--bg-2); }
body { overflow-x: hidden; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--surface); padding: .5rem 1rem; border-radius: var(--r-btn); }

/* the bar */
nav.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
nav.top .acts { display: flex; align-items: center; gap: .4rem; }
nav.top .login { font-weight: 700; color: var(--ink); text-decoration: none; padding: .7rem .9rem; border-radius: var(--r-btn); }
nav.top .login:hover { background: var(--bg-2); }
nav.top .btn { min-height: 44px; padding: 0 1.1em; }

/* the hero */
header.hero { position: relative; padding-block: clamp(1.2rem, 3vw, 2.4rem) 0; overflow: hidden; }
.hero-grid { display: grid; gap: 1.6rem; align-items: center; }
.hero h1 { max-width: 12ch; margin-bottom: .3em; }
.hero .sub { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 34ch; color: var(--ink); margin-bottom: 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.1rem; }
.cta-row .note { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--ink-2); }
.cta-row .note .i { color: var(--good); }
.stage { position: relative; height: min(600px, 132vw); max-height: 600px; }
.stage .scene { position: absolute; inset: 8% -12% auto -12%; width: 124%; height: auto; }
.stage .blob { position: absolute; width: 70%; aspect-ratio: 1; right: 4%; top: 6%; background: var(--tint-2); opacity: .7; }
.phone { position: relative; z-index: 2; width: min(330px, 84vw); margin-inline: auto; background: var(--night); border-radius: 46px;
  padding: 11px; box-shadow: 0 30px 60px -30px rgba(60, 30, 10, .55); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; transform: translateX(-50%);
  background: var(--night); border-radius: 999px; z-index: 3; }
.phone .screen { background: var(--screen); border-radius: 36px; overflow: hidden; height: 560px; max-height: 560px; }
.hero .phone .screen { -webkit-mask-image: linear-gradient(#000 72%, transparent 98%); mask-image: linear-gradient(#000 72%, transparent 98%); }
.stage .phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }

/* the result card, as the product shows it */
.tw { padding: 46px 16px 18px; font-size: .95rem; }
.tw .top-line { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: .8rem; color: var(--ink-2); margin-bottom: .6rem; }
.tw .photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--bg-2); }
.tw .photo > svg, .tw .photo > img { width: 100%; height: 100%; object-fit: cover; }
p { text-wrap: pretty; }
.emoji { font-family: inherit; }
.src a { color: var(--ink); }
.near-title { margin: 0 0 .4rem; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.carousel-dots { gap: 0; }
nav.top .login { white-space: nowrap; }
.carousel-dots button, .carousel-dots button[aria-current="true"] { width: 44px; height: 44px; background: transparent; position: relative; }
.carousel-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%);
  border-radius: 99px; background: var(--line-c); transition: width .3s cubic-bezier(.22, 1, .36, 1), background .3s; }
.carousel-dots button[aria-current="true"]::after { width: 24px; background: var(--accent); }
#faq summary { min-height: 44px; }
.small-links a, .small-links button { min-height: 44px; display: inline-flex; align-items: center; }
footer .links a, nav.top .brand { min-height: 44px; display: inline-flex; align-items: center; }
.qa p, .prose p { max-width: 65ch; }
.prose .sub { font-size: 1.15rem; }
.tw .photo .badge { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); }
.tw .photo .cred { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: .7rem; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgba(30, 20, 10, .6)); }
.tw .name { font: 600 1.55rem/1.05 var(--display); margin: .7rem 0 .15rem; }
.tw .sci { font-style: italic; color: var(--ink-2); font-size: .85rem; margin: 0 0 .6rem; }
.facts { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: .55rem; background: var(--bg); border-radius: 14px; padding: .55rem .7rem; font-weight: 700; }
.facts li .i { color: var(--accent); }
.facts b { font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0; }
.near { margin-top: .8rem; }
.near h4 { margin: 0 0 .4rem; font: 700 .85rem/1.2 var(--text); color: var(--ink-2); }
.near-row { display: flex; justify-content: space-between; padding: .45rem .1rem; border-bottom: 1px solid var(--line-c); font-weight: 600; }
.near-row span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* sections */
.sec-head { max-width: 40rem; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.sec-head p { font-size: 1.12rem; }
#what { background: var(--bg-2); border-radius: clamp(28px, 5vw, 64px); margin-inline: clamp(8px, 1.5vw, 20px); }
.what-grid { display: grid; gap: var(--gap); align-items: start; }
.big-stat { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.big-stat .n { font: 600 clamp(3.6rem, 9vw, 6rem)/.9 var(--display); color: var(--accent); }
.big-stat .l { font-weight: 700; max-width: 22ch; }
.rules { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.rules li { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); border-radius: 20px; padding: .85rem 1rem; }
.rules li .i-box { width: 2.4rem; height: 2.4rem; border-radius: 14px; }
.rules li .i-box .i { width: 1.25rem; height: 1.25rem; }
.rules b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.src { font-size: .85rem; color: var(--ink-2); margin-top: .8rem; }
.sample-card { background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: var(--card-shadow); }
.sample-card .photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.sample-card .photo svg { width: 100%; height: 100%; }
.sample-card .photo .badge { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); }
.sample-card h3 { font-size: 1.45rem; margin: .8rem 0 .2rem; }
.sample-card .meta { color: var(--ink-2); font-weight: 700; margin: 0 0 .2rem; }
.sample-card .meta .i { color: var(--accent); }
.carousel .slide { --slide: min(84%, 340px); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); }
.step { position: relative; padding: 1.4rem 1.3rem 1.5rem; border-radius: var(--r); background: var(--surface); box-shadow: var(--card-shadow); }
.step .i-box { margin-bottom: .9rem; }
.step h3 { font-size: 1.35rem; }
.step p { margin: 0; }
.step .emoji { position: absolute; right: 1.1rem; top: 1.1rem; font-size: 1.6rem; }

.price-grid { display: grid; gap: clamp(1.4rem, 4vw, 3.5rem); align-items: start; }
.plan { background: var(--accent); color: var(--on-accent); border-radius: clamp(28px, 4vw, 44px); padding: clamp(1.4rem, 3vw, 2.4rem); position: relative; overflow: hidden; }
.plan .amount { font: 600 clamp(3.6rem, 8vw, 5.4rem)/.9 var(--display); }
.plan .per { font-weight: 800; font-size: 1.15rem; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; display: grid; gap: .5rem; font-weight: 700; }
.plan li { display: flex; gap: .55rem; align-items: center; }
.plan .btn { background: var(--night); color: #fff; box-shadow: 0 6px 0 #000; }
.plan .fine { margin: .9rem 0 0; font-weight: 700; }
.plan .paw { position: absolute; right: -30px; bottom: -40px; width: 180px; opacity: .16; }
#faq h3 { font-size: 1.15rem; margin: 0; }
#faq details { background: var(--surface); border-radius: 22px; padding: 1rem 1.2rem; margin-bottom: .6rem; }
#faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary .i { transition: transform .2s; color: var(--accent); }
#faq details[open] summary .i { transform: rotate(180deg); }
#faq details p { margin: .6rem 0 0; }
.more { font-weight: 800; }

section.band { position: relative; overflow: hidden; background: var(--night); color: #fff; border-radius: clamp(28px, 5vw, 64px);
  margin: 0 clamp(8px, 1.5vw, 20px) var(--rhythm); text-align: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.band h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.band .wrap { position: relative; z-index: 1; }
.band .dots { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
footer .brand { display: flex; align-items: center; gap: .5rem; font: 600 1.1rem/1 var(--display); color: var(--ink); }
footer .brand img { width: 28px; height: 28px; }
footer a { color: var(--ink-2); font-weight: 700; }
footer .links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; }
.syng-legal-links a { color: var(--ink-2); }
footer .credit { flex-basis: 100%; font-size: .82rem; margin: 0; }

/* questions page */
.qa { display: grid; gap: .8rem; }
.qa article { background: var(--surface); border-radius: 24px; padding: 1.2rem 1.4rem; }
.qa h2 { font-size: 1.3rem; }
.qa p { margin: 0; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.2rem; }

/* accounts and the app */
.auth { padding-block: clamp(1.5rem, 5vw, 4rem); }
.auth .card { padding: clamp(1.4rem, 4vw, 2.2rem); }
.auth h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.form-msg { min-height: 1.4em; margin: .4rem 0 0; }
.small-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; font-weight: 700; }
.btn.full { width: 100%; }
.app-wrap { width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto; }
.quiz { max-width: 640px; margin: 0 auto; }
.progress { height: 12px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin-bottom: 1.4rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .35s cubic-bezier(.22, 1, .36, 1); }
.q-count { font-weight: 800; color: var(--ink-2); margin-bottom: .3rem; }
.quiz h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
.opts { display: grid; gap: .7rem; margin-top: 1.2rem; }
.opt { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; padding: 1rem 1.1rem; min-height: 60px; border-radius: 22px;
  border: 2px solid var(--line-c); background: var(--surface); font-weight: 700; font-size: 1.05rem; cursor: pointer; color: var(--ink);
  transition: transform .15s, border-color .15s, background .15s; }
.opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.opt:active { transform: translateY(1px); }
.opt .emoji { font-size: 1.5rem; }
.back { background: none; border: 0; color: var(--ink-2); font-weight: 800; cursor: pointer; padding: .6rem 0; margin-top: .8rem; }
.place { text-align: center; }
.place .i-box { width: 4rem; height: 4rem; margin-bottom: 1rem; }
.place .or { margin: 1.2rem 0 .6rem; font-weight: 800; color: var(--ink-2); }
.place select { max-width: 360px; margin: 0 auto; display: block; }
.loading { text-align: center; padding: 3rem 0; }
.loading .i { width: 2.6rem; height: 2.6rem; color: var(--accent); }
.result { display: grid; gap: var(--gap); align-items: start; }
.result .tw { padding: 0; }
.result .twin-card { background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: var(--card-shadow); max-width: 520px; }
.result .photo { aspect-ratio: 4 / 3.3; }
.blurb { font-size: 1.08rem; font-weight: 600; background: var(--tint); border-radius: 18px; padding: .9rem 1rem; margin: .8rem 0; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.side h2 { font-size: 1.5rem; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.history li { display: flex; gap: .7rem; align-items: center; background: var(--surface); border-radius: 18px; padding: .55rem; }
.history img { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; flex: none; }
.history b { display: block; }
.history span { color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.member-box { background: var(--bg-2); border-radius: 24px; padding: 1.2rem; margin-top: 1.2rem; }
.member-box h3 { margin-bottom: .3rem; }
.dialog { position: fixed; inset: 0; z-index: 60; background: rgba(43, 33, 24, .55); display: grid; place-items: center; padding: 1rem; overflow-y: auto; }
.dialog .hd { background: #fff; border-radius: 28px; padding: 18px; width: min(560px, 100%); }
.dialog .hd img { width: 100%; border-radius: 18px; }
.dialog .hd h2 { margin: .8rem 0 .2rem; }
.empty { text-align: center; padding: 2rem 1rem; }
.empty .emoji { font-size: 2.6rem; }
.acct { display: grid; gap: 1rem; max-width: 640px; margin: 0 auto; }
.acct h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; }
.acct .row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.danger { color: var(--bad); }
.btn.danger { background: var(--bad); color: #fff; box-shadow: 0 6px 0 #7a160f; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 80px); max-height: 820px; }
  .hero h1 { font-size: clamp(3.4rem, 5.6vw, 5rem); }
  .stage { height: 600px; }
  .what-grid { grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: .9fr 1.1fr; }
  .result { grid-template-columns: minmax(0, 520px) 1fr; }
  .carousel .slide { --slide: calc(50% - var(--gap) / 2); }
}
@media (max-width: 899px) {
  .stage { margin-top: .4rem; height: 600px; }
  .stage .scene { inset: 18% -30% auto -30%; width: 160%; }
}
@media print {
  body * { visibility: hidden; }
  .dialog, .dialog * { visibility: visible; }
  .dialog { position: absolute; inset: 0; background: #fff; display: block; padding: 0; }
  .dialog .no-print { display: none; }
}
