.hero { position: relative; overflow: clip; background: radial-gradient(ellipse at 77% 46%,#342124 0%,#1d181b 26%,transparent 59%),var(--ink); color: #f8f6f0; }
.hero-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.94fr); align-items: center; gap: clamp(2rem,5.1vw,4.8rem); padding-block: clamp(3.5rem,7vw,6.4rem); }
.hero-copy { animation: entry .55s var(--ease) both; }
h1 { font-weight: 650; font-size: clamp(3.5rem,5.4vw,5.2rem); line-height: 1.005; letter-spacing: -.075em; }
h1 em { font-style: normal; color: #ff8375; }
.lead { max-width: 30rem; margin-top: 1.45rem; color: #d2cecb; font-size: clamp(1rem,1.35vw,1.16rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.file-requirement { margin-top: .8rem; font-size: .88rem; color: #e2d9d8; }
.analyzer { isolation: isolate; position: relative; overflow: hidden; border: 1px solid #5b4548; border-radius: 1rem; background: linear-gradient(150deg,#302b2f,#201b1e 60%,#292327); box-shadow: 0 1.75rem 4rem #0005; animation: entry .7s var(--ease) both; }
.analyzer-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 1.15rem 1.4rem 0; }
.analyzer-head h2 { color: #fff5ed; font-size: 1.05rem; letter-spacing: -.025em; font-weight: 670; }
.analyzer-head > span { color: #c6babb; font-size: .8rem; }
.scanner-stage { position: relative; height: clamp(14.5rem,21.6vw,19.3rem); overflow: hidden; perspective: 52rem; background: radial-gradient(ellipse at 50% 61%,#b844342e,transparent 66%); }
.scan-bed { position: absolute; inset: -16% -40% -50%; background-image: linear-gradient(#bf656121 1px,transparent 1px),linear-gradient(90deg,#bf656125 1px,transparent 1px); background-size: 29px 29px; transform: rotateX(64deg) rotateZ(-19deg); mask-image: radial-gradient(ellipse at center,#000 16%,transparent 63%); }
.paper-pose { width: 59%; aspect-ratio: 1.4; position: absolute; top: 51%; left: 51%; transform-style: preserve-3d; transform: translate(-50%,-50%) rotateX(var(--pose-x,46deg)) rotateZ(var(--pose-z,-19deg)); transition: transform .6s var(--ease); }
.paper-pose > div { position: absolute; inset: 0; border-radius: .38rem; }
.back-cover { transform: translate3d(0,7%, -2.1rem); background: linear-gradient(140deg,#f35c4c,#b72826 60%,#5d1219); border: 1px solid #fa8f83; border-bottom: .23rem solid #5f1a20; box-shadow: -.25rem 1rem 1.5rem #0a050a90; }
.paper-leaves { transform: translateZ(-1.15rem); background: #cac2b7; border: 1px solid #fff6ed; box-shadow: 0 .11rem #806d65,0 .24rem #dad0c1,0 .35rem #9e847c,0 .48rem #e8ddcf,0 .57rem #897268,0 .68rem #c3a99a; }
.page-face { overflow: hidden; display: flex; flex-direction: column; padding: 7% 8% 5%; color: #2b2325; border: 1px solid #fff5e7; background: linear-gradient(120deg,#fff4e1,#f0decc 80%,#e4c5b3); box-shadow: 0 .17rem #b0a396,0 .27rem #f1dcc4,0 .37rem #ab8e7c,0 .43rem #ebd2b9,0 .56rem #8f7667; }
.page-meta { text-transform: uppercase; font-size: clamp(.48rem,.77vw,.65rem); font-weight: 750; letter-spacing: .15em; color: #8c3933; }
.paper-title { font-size: clamp(1.25rem,2.9vw,2.7rem); font-weight: 680; letter-spacing: -.072em; line-height: .93; margin: .25em 0; }
.paper-divider { border-top: 1px solid #7a5e51; margin: .12rem 0 .35rem; }
.paper-body { display: grid; flex: 1; min-height: 13%; grid-template-columns: 1fr 27%; align-items: center; gap: 6%; }
.type-lines { height: 100%; max-height: 1.15rem; background: repeating-linear-gradient(to bottom,#8c796b 0 1px, transparent 1px 6px); clip-path: polygon(0 0,100% 0,100% 53%,74% 53%,74% 100%,0 100%); }
.encoding-figure { position: relative; aspect-ratio: 2.8; }
.encoding-figure i { position: absolute; top: 2%; left: 0; width: 44%; aspect-ratio: 1; border: 1px solid #a24d46; border-radius: 50%; }
.encoding-figure i:nth-child(2) { left: 25%; } .encoding-figure i:nth-child(3) { left: 50%; background: #ab413526; }
.scan-glass { transform: translate3d(3%,8%,1.45rem); top: 48% !important; bottom: 12% !important; border: 1px solid #ff9a92; background: linear-gradient(90deg,#bd302a73,#ff765830 45%,#fe756b80); box-shadow: 0 1px 0 1px #ff766bdc,inset 0 0 1.3rem #ff6b4940,0 0 1.5rem #f63f3642; transition: transform .55s var(--ease), top .55s var(--ease),bottom .55s var(--ease); }
.scan-glass > i { position: absolute; width: .65rem; height: .55rem; border: solid #ffdbca; }
.scan-glass i:first-child { left: -.1rem; top: -.1rem; border-width: 2px 0 0 2px; }
.scan-glass i:nth-child(2) { right: -.1rem; top: -.1rem; border-width: 2px 2px 0 0; }
.scan-glass i:nth-child(3) { right: -.1rem; bottom: -.1rem; border-width: 0 2px 2px 0; }
.scan-glass i:last-child { left: -.1rem; bottom: -.1rem; border-width: 0 0 2px 2px; }
.analyzer[data-example="reading"] .scan-glass { top: 30% !important; bottom: 28% !important; transform: translate3d(3%,2%,1.85rem); }
.analyzer[data-example="reading"] .type-lines { max-height: none; background-size: 100% 4px; background-image: linear-gradient(#7e675b 1px,transparent 1px); }
.quote-controls { position: relative; z-index: 1; padding: .15rem 1.35rem 1.2rem; }
.example-selector { display: flex; width: 100%; padding: .22rem; border: 1px solid #51454a; border-radius: .45rem; background: #171416; }
.example-selector label { flex: 1; cursor: pointer; position: relative; }
.example-selector input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.example-selector span { display: grid; place-items: center; padding: .45rem .25rem; border-radius: .26rem; color: #cec5c6; font-size: .86rem; }
.example-selector input:checked + span { color: #fff2ed; background: #54373a; box-shadow: inset 0 0 0 1px #795155; }
.example-selector input:focus-visible + span { outline: 2px solid #ff998c; outline-offset: 1px; }
.example-info { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-top: .95rem; }
.example-info > div { display: flex; align-items: baseline; gap: .5rem; }
.example-info strong { font-size: 1rem; color: #fcf6ee; }
.example-info span { font-size: .82rem; color: #c7bfc0; }
.example-price strong { font-variant-numeric: tabular-nums; font-size: clamp(1.26rem,2vw,1.65rem); line-height: 1.15; letter-spacing: -.055em; }
.quote-offline, .quote-controls noscript p { color: #edc4b8; font-size: .82rem; margin-top: .65rem; }
.study-section { background: var(--paper); padding-block: clamp(3.5rem,6vw,5.5rem); }
.section-head { display: flex; align-items: end; gap: .75rem 1.5rem; justify-content: space-between; margin-bottom: 1.55rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2.25rem,4.5vw,3.9rem); font-weight: 640; letter-spacing: -.068em; line-height: 1.08; }
.section-head h2 span { color: var(--red); }
.section-head p { margin-top: .5rem; color: #5f5a57; }
.text-link, .panel-link { display: inline-block; color: #8b272c; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: #bba29b; font-size: .9rem; font-weight: 590; }
.study-studio { overflow: hidden; background: #fffefa; border: 1px solid #d6d0c8; border-radius: .85rem; box-shadow: 0 .3rem 1.25rem #352d2208; }
.mode-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: #eae7e1; border-bottom: 1px solid #d3cdc5; }
.mode-tabs button { position: relative; display: inline-flex; justify-content: center; align-items: center; min-height: 3.45rem; gap: .66rem; border: 0; color: #605956; background: transparent; font-weight: 540; font-size: .95rem; }
.mode-tabs button + button { border-left: 1px solid #d7d1ca; }
.mode-tabs button:hover { background: #f2eee8; }
.mode-tabs button[aria-selected="true"] { color: #78252a; background: #fffefa; box-shadow: inset 0 -3px #b12931; }
.mode-tabs button:focus-visible { outline-offset: -4px; }
.mode-icon { flex: none; width: 1.2rem; height: 1.2rem; position: relative; display: block; }
.mode-icon::before,.mode-icon::after { content: ""; position: absolute; box-sizing: border-box; }
.cards-icon::before, .cards-icon::after { width: .78rem; height: .87rem; border: 1.5px solid currentColor; border-radius: 2px; }
.cards-icon::before { left: .1rem; top: .1rem; transform: rotate(-12deg); }
.cards-icon::after { right: 0; bottom: 0; background: #f4efe8; }
.match-icon::before, .match-icon::after { width: .68rem; height: .68rem; border: 1.5px solid currentColor; border-radius: 2px; }
.match-icon::before { top: 0; left: 0; } .match-icon::after { right: 0; bottom: 0; }
.watch-icon::before { inset: .17rem 0; border: 1.5px solid currentColor; border-radius: 3px; }
.watch-icon::after { top: .39rem; left: .48rem; border-left: .32rem solid currentColor; border-block: .21rem solid transparent; }
.review-icon::before { inset: .08rem .1rem .1rem .07rem; border: 1.5px solid currentColor; border-left-color: transparent; border-radius: 50%; }
.review-icon::after { top: .03rem; left: .08rem; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 0 1.5px 1.5px; }
.mode-panel { display: grid; grid-template-columns: minmax(0,.77fr) minmax(0,1fr); gap: clamp(1.6rem,4.3vw,4rem); align-items: center; padding: clamp(1.5rem,3.45vw,3.2rem); min-height: 21rem; }
.mode-panel:focus-visible { outline-offset: -4px; }
.panel-copy h3 { font-size: clamp(1.7rem,3.15vw,2.8rem); font-weight: 630; line-height: 1.09; letter-spacing: -.065em; margin-block: .45rem .65rem; }
.panel-copy p { color: #5e5955; line-height: 1.58; max-width: 21rem; }
.study-label { color: #7a6e64; font-size: .85rem; }
.panel-link { margin-top: 1.3rem; }
.activity { min-width: 0; }
.flip-activity { display: grid; justify-items: end; gap: .55rem; }
.flip-button { width: 100%; display: block; overflow: visible; border: none; background: transparent; padding: 0; border-radius: .7rem; text-align: left; perspective: 55rem; }
.flip-deck { --card-depth: 5px; position: relative; display: grid; min-height: 11.9rem; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transform: rotateY(0deg); transition: transform 520ms cubic-bezier(.32,.2,.28,.98); border-radius: .7rem; }
.flip-button[aria-pressed="true"] .flip-deck { transform: rotateY(180deg); }
.flip-deck::before, .flip-deck::after {
  content: ""; position: absolute; inset-block: .55rem; width: calc(2 * var(--card-depth)); pointer-events: none;
  background: linear-gradient(90deg,#bc6e5b,#775353 50%,#2c252a); transform: translateX(-50%) rotateY(90deg);
}
.flip-deck::before { left: 0; }
.flip-deck::after { left: 100%; }
.flip-side { grid-area: 1/1; width: 100%; padding: clamp(1.1rem,2.4vw,1.85rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .6rem; border-radius: .68rem; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-front { color: #fff8ee; background: radial-gradient(ellipse at 97% 120%,#663e3c,transparent 65%),#2d272b; transform: translateZ(var(--card-depth)); box-shadow: 0 .4rem 1.1rem #1e111930; }
.card-back { background: #7d3335; color: #fff8ed; transform: rotateY(180deg) translateZ(var(--card-depth)); box-shadow: 0 .4rem 1.1rem #1e111930; }
.card-meta { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .6rem; color: #e1cfc3; font-size: .79rem; }
.card-meta > span { font-variant-numeric: tabular-nums; }
.flip-side > strong { letter-spacing: -.037em; font-weight: 560; font-size: clamp(1.25rem,2.04vw,1.65rem); line-height: 1.22; }
.flip-prompt { color: #ffddd0; font-size: .83rem; text-decoration: underline; text-underline-offset: .18em; }
.small-action { color: #8b272c; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .22em; padding: .4rem .1rem; font-size: .85rem; font-weight: 620; }
.flip-activity > .small-action { margin-top: .15rem; }
.match-activity,.review-activity { padding: clamp(.9rem,1.9vw,1.4rem); border-radius: .7rem; background: #f5f1e9; border: 1px solid #e3d9cc; }
.match-status, .activity-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.match-status { margin-bottom: .8rem; font-size: .85rem; color: #61574f; }
.match-status strong { font-weight: 650; color: #3b3530; }
.pair-grid { display: grid; grid-template-columns: .86fr 1.15fr; gap: .55rem; }
.pair-side, #review-options { display: grid; gap: .45rem; }
.pair-side button,#review-options button { padding: .57rem .7rem; min-height: 2.65rem; line-height: 1.22; text-align: left; color: #393430; background: #fffefa; border: 1px solid #cfc6ba; border-radius: .35rem; font-size: .88rem; }
.pair-side button[aria-pressed="true"],.pair-side button:hover:enabled,#review-options button:hover:enabled { border-color: #a04442; background: #ffede5; }
.pair-side button:disabled { color: #436448; background: #e6eddf; border-color: #b5c5ad; opacity: 1; }
.feedback { font-size: .83rem; color: #654239; }
.activity-foot { margin-top: .6rem; min-height: 2rem; }
.watch-activity video { width: 100%; background: #171516; border-radius: .55rem; aspect-ratio: 16 / 9; }
.review-activity h4 { margin-bottom: .75rem; font-size: 1.05rem; }
.review-result > strong { display: block; color: #7c3431; font-size: .88rem; margin-top: .65rem; }
.review-result blockquote { margin-top: .4rem; font-size: .95rem; line-height: 1.55; color: #403931; }
.review-result mark { padding-block: .07em; background: #f6daa4; color: inherit; }
.review-result cite { display: block; margin-top: .32rem; font-size: .77rem; color: #685e55; }
@keyframes entry { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1130px) {
  .hero-inner { min-height: min(47rem,76svh); }
}
@media (max-width: 940px) {
  .hero-inner { gap: 2rem; grid-template-columns: minmax(0,1fr) minmax(0,.98fr); }
  h1 { font-size: clamp(3rem,5.8vw,4rem); }
  .example-info > div { flex-direction: column; gap: .04rem; }
  .example-price { align-items: end !important; }
  .paper-title { font-size: clamp(1.5rem,3vw,2.3rem); }
}
@media (max-width: 710px) {
  .hero-inner { grid-template-columns: minmax(0,1fr); padding-block: 3rem 2.65rem; gap: 2rem; }
  h1 { font-size: clamp(3.05rem,9.5vw,4.45rem); }
  .lead { margin-top: 1rem; }
  .hero-actions { margin-top: 1.2rem; }
  .analyzer { width: min(100%,34rem); }
  .scanner-stage { height: clamp(13rem,47vw,17rem); }
  .paper-pose { width: 57%; }
  .paper-title { font-size: clamp(1.65rem,6.8vw,2.65rem); }
  .page-meta { font-size: .55rem; }
  .example-info > div { flex-direction: row; gap: .45rem; }
  .mode-panel { grid-template-columns: 1fr; gap: 1.35rem; min-height: auto; }
  .panel-copy p { max-width: none; }
  .panel-link { margin-top: .6rem; }
  .flip-deck { min-height: 11rem; }
}
@media (max-width: 420px) {
  h1 { font-size: clamp(2.42rem,11.6vw,3.05rem); }
  .hero-actions .button { padding-inline: .95rem; }
  .analyzer-head { padding: 1rem 1rem 0; }
  .quote-controls { padding: .1rem 1rem .95rem; }
  .example-info > div { gap: .33rem; }
  .example-info span { font-size: .76rem; }
  .mode-icon { display: none; }
  .mode-tabs button { font-size: .86rem; }
  .mode-panel { padding: 1.1rem; }
  .section-head { margin-bottom: 1.05rem; }
}
@media (max-width: 350px) {
  .example-info { align-items: flex-end; }
  .example-info > div { flex-direction: column; align-items: flex-start; }
  .mode-tabs button { padding-inline: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-button[aria-pressed] .flip-deck, .flip-side { transform: none; }
  .flip-deck::before, .flip-deck::after { display: none; }
  .flip-side[aria-hidden="true"] { visibility: hidden; }
}
.transcript { margin-top: .45rem; color: #5e5652; font-size: .85rem; }
.watch-activity #play-sample-video, .watch-activity #sample-video-fallback, .transcript summary {
  width: fit-content;
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid #aa3642;
  border-radius: .45rem;
  background: #221a1d;
  color: #fff4f4;
  font-weight: 650;
  cursor: pointer;
}
.watch-activity #play-sample-video { margin-bottom: .5rem; background: #ae2334; }
.watch-activity #play-sample-video:hover { background: #8e1d30; }
.watch-activity #sample-video-fallback:not([hidden]) { display: inline-flex; align-items: center; margin: .45rem 0; }
.watch-activity #sample-video-status { margin: .35rem 0; font-size: .88rem; }
.transcript summary:hover { background: #4b2228; }
.transcript p { margin-top: .45rem; line-height: 1.55; }
