/* GetReal — /resources/
   Loaded after styles.css. Tokens, type, buttons, .win, .ib, .tile, .head, .cta and the footer come from there.
   This page points to where things live. It does not copy documentation.
   Each group has its own shape so the page does not read as one grid of cards. */

/* Hero: a signpost whose signs are the way into the page. */
.rhero { position: relative; padding: calc(var(--nav-h) + clamp(44px, 7vw, 104px)) 0 clamp(56px, 7vw, 104px); overflow: hidden; isolation: isolate; }
.rhero .hero__bg { background: radial-gradient(50% 80% at 82% 34%, rgba(64, 195, 254, 0.2), transparent 62%), linear-gradient(180deg, var(--deep), var(--ink)); }
.rhero .hero__bg::after { -webkit-mask-image: radial-gradient(60% 80% at 80% 36%, #000, transparent 72%); mask-image: radial-gradient(60% 80% at 80% 36%, #000, transparent 72%); }
.rhero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rhero .hero__title { font-size: clamp(2.3rem, 4.7vw, 4.3rem); }
.rhero .hero__title .line > span { white-space: normal; }
.rhero .hero__sub { max-width: 27em; }

.post { position: relative; display: grid; gap: 14px; }
.post::before { content: ""; position: absolute; left: 50%; top: -30px; bottom: -400px; width: 12px; margin-left: -6px; background: linear-gradient(90deg, #56637f, var(--silver) 45%, #6f7c95); border-radius: 6px 6px 0 0; opacity: 0.55; }
.post a { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; width: 88%; padding: 14px 36px 14px 14px; background: #10224f; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 16px 999px 999px 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); color: var(--on-dark-2); font-size: 0.92rem; line-height: 1.3; text-decoration: none; transition: transform 0.3s var(--ease), border-color 0.2s, background-color 0.2s; }
.post a:nth-child(even) { justify-self: end; grid-template-columns: minmax(0, 1fr) 46px; padding: 14px 14px 14px 36px; border-radius: 999px 16px 16px 999px; text-align: right; }
.post a:nth-child(even) .ib { order: 2; }
.post b { display: block; font-size: 1.14rem; font-weight: 650; letter-spacing: -0.01em; color: var(--white); }
.post a:hover { background: #14295c; border-color: var(--cyan); transform: translateX(8px); }
.post a:nth-child(even):hover { transform: translateX(-8px); }
.js .post a { animation: sign 0.8s var(--ease) backwards; }
.js .post a:nth-child(even) { animation-name: sign-b; }
.js .post a:nth-child(2) { animation-delay: 0.1s; }
.js .post a:nth-child(3) { animation-delay: 0.2s; }
.js .post a:nth-child(4) { animation-delay: 0.3s; }
@keyframes sign { from { opacity: 0; transform: translateX(-28px); } }
@keyframes sign-b { from { opacity: 0; transform: translateX(28px); } }

/* Sections */
.rsec { --fg2: var(--on-dark-2); padding: clamp(72px, 9vw, 128px) 0; background: var(--ink); }
.rsec--deep { background: var(--deep); }
.rsec--paper { --fg2: var(--on-light-2); background: var(--paper); color: var(--ink); }
.rsec h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.rsec .head { margin-bottom: clamp(36px, 5vw, 64px); }
.rsec a:hover .ext { transform: translate(2px, -2px); }

/* Start with the problem: what an owner says out loud, and where to go for it. */
.probs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
.prob { display: grid; grid-template-rows: 1fr auto; gap: 24px; height: 100%; color: var(--ink); text-decoration: none; }
.prob__q { position: relative; display: flex; align-items: center; min-height: 150px; padding: 24px 26px; background: var(--white); border: 1.5px solid var(--line-light); border-radius: 26px 26px 26px 8px; box-shadow: 0 18px 40px rgba(8, 19, 48, 0.08); font-size: clamp(1.3rem, 1.9vw, 1.62rem); font-weight: 650; font-stretch: 106%; line-height: 1.14; letter-spacing: -0.025em; text-wrap: balance; transition: transform 0.3s var(--ease), border-color 0.2s, box-shadow 0.3s; }
.prob__q::after { content: ""; position: absolute; left: 30px; bottom: -10.5px; width: 19px; height: 19px; background: var(--white); border: solid var(--line-light); border-width: 0 1.5px 1.5px 0; border-radius: 0 0 5px; transform: rotate(45deg); transition: border-color 0.2s; }
.prob:hover .prob__q { border-color: var(--ink); box-shadow: 0 24px 50px rgba(8, 19, 48, 0.14); transform: translateY(-4px); }
.prob:hover .prob__q::after { border-color: var(--ink); }
.prob__to { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 0 6px 0 16px; font-size: 0.92rem; line-height: 1.3; color: var(--on-light-2); }
.prob__to b { display: block; font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.prob:focus-visible { outline-color: var(--ink); }

/* Product documentation: one sheet per product. */
.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.doc { --tint: 64, 195, 254; --spot-x: 50%; --spot-y: 0%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 6px; height: 100%; padding: 26px 20px 22px; background: radial-gradient(340px circle at var(--spot-x) var(--spot-y), rgba(var(--tint), 0.24), transparent 66%), linear-gradient(160deg, #0f2150, var(--ink) 78%); border: 1px solid var(--line-dark); border-radius: 26px; color: var(--white); text-decoration: none; overflow: hidden; transition: border-color 0.25s, transform 0.3s var(--ease); }
.doc--rain { --tint: 56, 132, 255; }
.doc--ri { --tint: 99, 160, 255; }
.doc--csc { --tint: 126, 96, 232; }
.doc:hover { border-color: rgba(var(--tint), 0.7); transform: translateY(-4px); }
.doc__page { position: relative; display: grid; align-content: start; gap: 11px; height: 196px; margin: 0 6px 20px; padding: 22px 20px; background: #0a1740; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; -webkit-clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%); transform: rotate(-2.5deg); transform-origin: 50% 100%; transition: transform 0.4s var(--ease); }
.docs li:nth-child(even) .doc__page { transform: rotate(2deg); }
.doc:hover .doc__page { transform: rotate(0deg) translateY(-4px); }
.doc__page::after { content: ""; position: absolute; right: -1px; top: -1px; width: 31px; height: 31px; background: linear-gradient(225deg, transparent 50%, rgba(var(--tint), 0.75) 50%); border-bottom-left-radius: 8px; }
.doc__mark { height: 46px; width: auto; margin-bottom: 10px; }
.doc__mark--wide { height: 28px; margin: 6px 0 16px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.doc__page i { display: block; height: 8px; background: rgba(255, 255, 255, 0.13); border-radius: 8px; transform-origin: left; }
.doc__page i:nth-of-type(1) { width: 58%; background: rgba(var(--tint), 0.75); }
.doc__page i:nth-of-type(2) { width: 92%; }
.doc__page i:nth-of-type(3) { width: 78%; }
.doc__page i:nth-of-type(4) { width: 86%; }
.doc__page i:nth-of-type(5) { width: 44%; }
.doc h3 { font-size: clamp(1.3rem, 1.8vw, 1.5rem); font-weight: 700; font-stretch: 108%; letter-spacing: -0.025em; }
.doc__where { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 0.96rem; line-height: 1.3; color: var(--on-dark-2); overflow-wrap: anywhere; }
.doc__where .ext { flex: none; color: var(--white); }
@media (prefers-reduced-motion: no-preference) {
  .js .doc__page i { transform: scaleX(0); transition: transform 0.8s var(--ease); }
  .js .doc.is-in .doc__page i { transform: none; }
  .js .doc.is-in .doc__page i:nth-of-type(2) { transition-delay: 0.08s; }
  .js .doc.is-in .doc__page i:nth-of-type(3) { transition-delay: 0.16s; }
  .js .doc.is-in .doc__page i:nth-of-type(4) { transition-delay: 0.24s; }
  .js .doc.is-in .doc__page i:nth-of-type(5) { transition-delay: 0.32s; }
}

/* Courses: they live on another site, so they sit in a window of that site. */
.courses { position: relative; overflow: hidden; background: var(--cyan); color: var(--ink); }
.courses::before { content: ""; position: absolute; left: -14%; bottom: -70%; width: 820px; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 62px, rgba(8, 19, 48, 0.09) 62px 64px); pointer-events: none; }
.courses__in { position: relative; display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.courses__ico { width: 72px; height: 72px; margin-bottom: 26px; border-radius: 22px; }
.courses__ico .ic { width: 36px; height: 36px; }
.courses__copy p { max-width: 20em; margin-top: 20px; font-size: 1.16rem; line-height: 1.45; }
.courses .win { box-shadow: 0 30px 70px rgba(8, 19, 48, 0.35); }
.clist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: clamp(14px, 1.6vw, 20px); }
.clist a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; height: 100%; min-height: 68px; padding: 12px 16px 12px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); border-radius: 14px; color: var(--white); font-size: 1.04rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; text-decoration: none; transition: background-color 0.2s, border-color 0.2s; }
.clist a:hover { background: rgba(64, 195, 254, 0.1); border-color: rgba(64, 195, 254, 0.55); }
.clist .ext { color: var(--on-dark-2); }

/* Guides and product sites */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feat { --spot-x: 85%; --spot-y: 0%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: center; height: 100%; padding: clamp(22px, 2.6vw, 34px); background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(64, 195, 254, 0.16), transparent 62%), rgba(12, 26, 63, 0.6); border: 1px solid var(--line-dark); border-radius: 26px; color: var(--white); text-decoration: none; transition: border-color 0.25s, transform 0.3s var(--ease); }
.feat:hover { border-color: rgba(64, 195, 254, 0.5); transform: translateY(-3px); }
.feat h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 700; font-stretch: 108%; letter-spacing: -0.025em; }
.feat p { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--on-dark-2); }
.coins { display: flex; align-items: center; gap: 16px; }
.coins span { position: relative; display: grid; place-items: center; width: 52px; height: 52px; flex: none; background: #10224f; border-radius: 50%; color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(64, 195, 254, 0.4); }
.coins span + span::before { content: ""; position: absolute; right: 100%; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: rgba(255, 255, 255, 0.22); }
.coins img { height: 28px; width: auto; }
.coins .coins__rain { box-shadow: inset 0 0 0 1px rgba(255, 178, 36, 0.6); }
.coins .coins__done { background: var(--pop); color: var(--ink); box-shadow: none; }
.coins .coins__done .ic { stroke-width: 2.2; }
.rsub { margin: clamp(40px, 5vw, 64px) 0 18px; font-size: 1rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--on-dark-2); }
.sites { display: flex; flex-wrap: wrap; gap: 12px; }
.sites a { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 16px; background: rgba(12, 26, 63, 0.92); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; color: var(--white); font-size: 1.06rem; font-weight: 650; text-decoration: none; transition: border-color 0.2s, background-color 0.2s; }
.sites a:hover { background: var(--panel); border-color: var(--cyan); }
.sites img { height: 28px; width: auto; }
.sites .node__dot { width: 24px; height: 24px; flex: none; }
.sites .ext { color: var(--on-dark-2); }
.art { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; height: 100%; color: var(--white); text-decoration: none; }
.art b { font-size: 1.1rem; font-weight: 650; line-height: 1.22; letter-spacing: -0.01em; text-wrap: pretty; }
.art > span:last-child { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--on-dark-2); }

@media (max-width: 980px) {
  .rhero__in, .courses__in { grid-template-columns: minmax(0, 1fr); }
  .post { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .post::before { display: none; }
  .post a, .post a:nth-child(even) { justify-self: stretch; grid-template-columns: 46px minmax(0, 1fr); width: auto; padding: 14px 16px 14px 14px; border-radius: 18px; text-align: left; }
  .post a:nth-child(even) .ib { order: 0; }
  .post a:hover, .post a:nth-child(even):hover { transform: translateY(-3px); }
  .js .post a, .js .post a:nth-child(even) { animation-name: sign-up; }
  .probs, .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: minmax(0, 1fr); }
}
@keyframes sign-up { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 720px) {
  .post a, .post a:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; padding: 14px; }
  .post b { font-size: 1.04rem; }
  .probs { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .prob__q { min-height: 0; padding: 22px; }
  .docs { gap: 10px; }
  .doc { padding: 18px 14px 16px; border-radius: 20px; }
  .doc__page { height: 150px; margin: 0 2px 16px; padding: 16px 14px; gap: 9px; }
  .doc__mark { height: 36px; margin-bottom: 6px; }
  .doc__mark--wide { height: 20px; margin: 4px 0 12px; }
  .doc__page i { height: 7px; }
  .doc__where { font-size: 0.9rem; }
  .clist { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; }
  .clist a { min-height: 60px; }
  .feat { grid-template-columns: minmax(0, 1fr); }
  .sites a { min-height: 52px; padding: 0 18px 0 14px; font-size: 1rem; }
}
