/* Colors and surfaces follow the client shown on each independent guide. */
:root {
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box }
body {
  --bg: #0a0a0c; --surface: #121317; --raised: #1b1d23; --line: #33363f;
  --text: #f4f4f7; --muted: #bec0cc; --accent: #adb7ff; --button: #c4cbff;
  --on-button: #121528; --radius: 16px; --stage: #141622;
  margin: 0; min-height: 100vh; color-scheme: dark; background: var(--bg); color: var(--text);
  display: flex; flex-direction: column;
}
body.happ {
  color-scheme: light; --bg: #f0eff3; --surface: #fff; --raised: #e8e5f1; --line: #d3cfdf;
  --text: #282635; --muted: #565366; --accent: #50448f; --button: #5649a9;
  --on-button: #fff; --radius: 24px; --stage: #dfdbea;
  background: radial-gradient(ellipse at 90% 25%, #f9f8fc 0, transparent 52%),var(--bg);
}
body.incy {
  --bg: #09150e; --surface: #101f15; --raised: #192b1d; --line: #354937;
  --text: #f1f5ee; --muted: #b6c8b8; --accent: #c1e757; --button: #c2e858;
  --on-button: #15220c; --radius: 13px; --stage: #13251a;
}
body.v2ray {
  color-scheme: light; font-family: Roboto, "Segoe UI", Arial, sans-serif;
  --bg: #fff; --surface: #fff; --raised: #f0eff0; --line: #d2d1d3;
  --text: #1c1b1f; --muted: #514f53; --accent: #1c1b1f; --button: #101013;
  --on-button: white; --radius: 12px; --stage: #e7e5df;
}
body.v2ray.windows { font-family: "Segoe UI", Roboto, Arial, sans-serif; --radius: 8px; --bg: #f4f4f4 }
.wrap { width: min(100% - clamp(2rem,8vw,7.5rem),71rem); margin-inline: auto }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: .075em }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px }
.masthead { border-bottom: 1px solid var(--line); background: var(--bg) }
.masthead nav { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem }
.brand { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none }
.brand img { aspect-ratio: 1; object-fit: contain; border-radius: 22% }
.brand span, .picker a span { display: grid }
.brand b { line-height: 1.15; font-size: 1.04rem; letter-spacing: -.025em }
.brand small { color: var(--muted); font-size: .79rem; line-height: 1.45 }
.nav-link { font-size: .91rem; text-decoration: none; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 2rem }
.nav-link:hover, .cta:hover, .guides a:hover, .picker a:hover { background-color: var(--raised) }
header, footer, main { flex-shrink: 0 }
main { flex: 1 }
.overview { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: center; gap: clamp(2.5rem,7vw,7rem); padding-block: clamp(2.5rem,5vw,5rem) }
h1,h2,p,figure { margin: 0 }
h1,h2 { text-wrap: balance }
h1 { font-size: clamp(3rem,5.9vw,5.75rem); line-height: 1.01; letter-spacing: -.065em; font-weight: 690 }
h1 em { font-style: normal; color: var(--accent); display: block }
h2 { font-size: clamp(1.25rem,2vw,1.7rem); letter-spacing: -.035em; line-height: 1.18 }
.lede { max-width: 46ch; margin-top: 1rem; font-size: clamp(1rem,1.25vw,1.12rem) }
p,figcaption { color: var(--muted) }
.uxway h1, .uxway .brand b { font-family: "Avenir Next","Segoe UI",sans-serif; font-weight: 650 }
.uxway h1 em { color: var(--text); letter-spacing: -.08em }
.happ h1 { font-weight: 640 }
.incy h1 em,.incy .brand b { font-weight: 780; color: var(--accent) }
.v2ray h1 { font-weight: 560; letter-spacing: -.055em }
.v2ray h1 em { display: inline }
.signup { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(1rem,2vw,1.5rem) }
.signup p:not(.price) { margin-top: .45rem; line-height: 1.45; max-width: 47ch }
.actions { display: flex; align-items: stretch; gap: .6rem; margin-top: 1rem; flex-wrap: wrap }
.cta { min-height: 2.95rem; padding: .65rem .95rem; display: inline-flex; gap: .55rem; justify-content: center; align-items: center; border-radius: calc(var(--radius) * .63); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 620 }
.cta.primary { background: var(--button); color: var(--on-button); border-color: var(--button) }
.cta.primary:hover { filter: brightness(.92) }
.happ .cta, .v2ray .cta { border-radius: 2rem }
.plane { width: 1.1em; height: 1em; background: currentColor; clip-path: polygon(0 39%,100% 0,77% 98%,46% 65%,35% 83%,36% 58%,80% 18%,28% 51%); flex-shrink: 0 }
.mail { width: 1.08em; height: .79em; border: 1.6px solid currentColor; border-radius: 3px; position: relative; overflow: hidden; flex-shrink: 0 }
.mail:after { content: ""; position: absolute; width: .68em; height: .68em; border: solid currentColor; border-width: 0 1.4px 1.4px 0; left: 50%; top: -.46em; transform: translateX(-50%) rotate(45deg) }
.price { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; font-size: .88rem }
.price strong { color: var(--text); font-weight: 620 }
.preview { min-width: 0; align-self: stretch; display: flex; flex-direction: column }
.display { position: relative; isolation: isolate; display: grid; place-items: center; flex: 1; min-height: 26rem; padding: 1.35rem; background: var(--stage); border-radius: calc(var(--radius) + 6px); overflow: hidden }
.display::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none }
.uxway .display::before { background: radial-gradient(ellipse at 65% 90%,#353b70,transparent 58%),linear-gradient(145deg,#191926,#0a0a0d 62%) }
.happ .display::before { background: radial-gradient(ellipse at 54% 36%,#f8f7fb,#e3dfec 72%,#d7d2e3) }
.incy .display::before { background: radial-gradient(ellipse at 51% 47%,#394d2c,#17291a 57%,#0d1911) }
.screenshot { display: block; max-width: 100%; }
.screenshot img { display: block; max-width: 100%; max-height: 27rem; width: auto; height: auto; object-fit: contain; border-radius: .95rem; box-shadow: 0 .7rem 2rem #0005 }
.happ .screenshot img { box-shadow: 0 .65rem 1.45rem #37314d30; border: 1px solid #c8c6cf; border-radius: .8rem }
.incy .screenshot { position: relative; width: min(12.3rem,100%); aspect-ratio: 540 / 1150; overflow: hidden; border-radius: 1.45rem; box-shadow: 0 .65rem 1.6rem #0005 }
.incy .screenshot img { position: absolute; width: 133%; max-width: none; max-height: none; left: -16.3%; top: -35.6%; border-radius: 0; box-shadow: none }
.preview figcaption { margin-top: .65rem; font-size: .86rem; text-align: center }
.picker { min-width: 0; padding: clamp(1.4rem,3vw,2.4rem); border-radius: 1.4rem; background: var(--stage); border: 1px solid var(--line) }
.picker h2 { font-size: clamp(1.4rem,2.5vw,2rem); margin-bottom: 1.5rem; font-weight: 550 }
.picker ul, .guides { margin: 0; padding: 0; list-style: none }
.picker ul { display: grid; gap: .6rem }
.picker a { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; background: var(--surface); color: var(--text); text-decoration: none; border-radius: .65rem; border-inline-start: .25rem solid #f97910 }
.picker li+li a { border-inline-start-color: #3373a9 }
.picker img { object-fit: contain }
.picker strong { font-size: 1.2rem; font-weight: 620 }
.picker small { color: var(--muted); font-size: .9rem }
.picker a::after, .guides a::after { content: ""; display: block; width: .42rem; height: .42rem; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); margin-left: auto; opacity: .7; flex: none }
.support,.article-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem,7vw,7rem); padding-bottom: 3.75rem }
.support { border-top: 1px solid var(--line); padding-top: 2rem }
#guides { scroll-margin-top: 1rem }
.guides,.faq details:first-of-type { margin-top: 1rem }
.guides li:first-child a, .faq details:first-of-type { border-top: 1px solid var(--line) }
.guides a, summary { display: flex; align-items: center; gap: 1rem; min-height: 3.25rem; padding: .7rem .2rem; text-decoration: none; font-weight: 540 }
.guides a,details { border-bottom: 1px solid var(--line) }
summary { justify-content: space-between; list-style: none; cursor: pointer }
summary::-webkit-details-marker { display: none }
summary::after { content: "+"; color: var(--accent); font-size: 1.2rem }
details[open] summary::after { content: "−" }
details p { padding-bottom: 1rem }
.page-title { padding-block: clamp(2rem,4vw,3.8rem) }
.page-title h1 { max-width: 23ch; margin-top: .65rem; font-size: clamp(2.45rem,4.7vw,4.3rem) }
.crumb { color: var(--muted); font-size: .93rem }
.article-grid { grid-template-columns: 1.18fr 1fr; align-items: start; gap: clamp(1.6rem,6vw,5rem) }
article { padding-top: .6rem }
article > p,article > figure,article > ol { margin-top: 1rem }
article .textlink { color: var(--accent); font-weight: 620 }
.steps { list-style-position: outside; padding-left: 1.65rem }
.steps li { padding: .3rem 0 .55rem .3rem }
.steps li::marker { color: var(--accent); font-weight: 680 }
article figure img { display: block; width: auto; max-width: 100%; max-height: 24rem; border-radius: .75rem }
article figcaption { font-size: .88rem; margin-top: .5rem }
aside #guides { margin-top: 1.65rem }
footer { margin-top: auto; padding: 1.3rem 0 1.7rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem }
footer .wrap { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap }
@media (max-width: 760px) {
  .masthead nav { min-height: 3.9rem }
  .overview, .support, .article-grid { grid-template-columns: 1fr }
  .overview { gap: 1.6rem; padding-block: 1.75rem }
  h1 em { display: inline }
  .actions { margin-top: .85rem }
  .cta { flex: 1 1 10rem }
  .display { min-height: 0; height: 20rem; flex: none; padding: 1rem }
  .screenshot { max-height: 100% }
  .screenshot img { max-height: 18rem }
  .incy .screenshot { width: min(8.44rem,100%); max-height: none }
  .support { gap: 1.75rem; padding-bottom: 2rem }
  .page-title { padding-block: 1.7rem }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 1.5rem) }
  .actions { display: grid }
  .brand { gap: .48rem }
}

.overview {
  grid-template-areas: "welcome preview" "signup preview";
  row-gap: 1.3rem;
}
.welcome { grid-area: welcome; align-self: end }
.overview > .signup { grid-area: signup; align-self: start }
.overview > .preview,.overview > .picker { grid-area: preview }
.v2ray .overview { grid-template-areas: "welcome welcome" "preview signup"; align-items: stretch }
.v2ray .welcome { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2.5rem }
.v2ray .welcome h1 { font-size: clamp(2.9rem,5vw,4.7rem) }
.v2ray .welcome .lede { max-width: 42ch; margin: 0 }
.v2ray .overview .signup { align-self: stretch }
.v2ray .picker { padding: clamp(1.15rem,2.1vw,1.65rem); background: #e7e7e7 }
.v2ray .picker h2 { font-size: 1.35rem; margin-bottom: 1rem }
.v2ray .picker a { padding-block: .85rem }
@media (max-width: 760px) {
  .overview, .v2ray .overview { grid-template-areas: "welcome" "preview" "signup"; gap: .85rem }
  .welcome .lede,.v2ray .welcome .lede { margin-top: .6rem }
  .v2ray .welcome { display: block }
  .preview { margin: 0 }
  .display { height: 12.35rem; padding: .5rem .85rem }
  .screenshot img { max-height: 11.35rem }
  .preview figcaption { margin-top: .25rem; font-size: .79rem }
  .uxway .display,.incy .display { place-items: start center; padding-top: .45rem }
  .uxway .screenshot { width: 10.3rem; max-height: none }
  .uxway .screenshot img { max-height: none; width: 100% }
  .incy .screenshot { width: 9.9rem; max-height: none }
  .v2ray .picker ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem }
  .v2ray .picker { padding: .85rem }
  .v2ray .picker h2 { font-size: 1.05rem; margin-bottom: .65rem }
  .v2ray .picker a { gap: .45rem; padding: .5rem; border-inline-start-width: .17rem }
  .v2ray .picker a::after { display: none }
  .v2ray .picker img { width: 2rem; height: 2rem }
  .v2ray .picker strong { font-size: 1rem }
  .v2ray .picker small { font-size: .85rem }
}
@media (max-width: 370px) {
  .display { height: 9.8rem }
  .screenshot img { max-height: 8.8rem }
  .overview { padding-top: 1.1rem }
}
