/* The tutor home page (index.html), laid over home.css: the same paper and ink chapters, type and island, told around
   one idea, "Learn anything on your screen." Adds the hero lesson on a practice paper (four steps that tutor.js moves along:
   listening, the market drawn, the tax drawn, a quiz), the chatbot difference, how it works, what it works on,
   the five reasons it works, privacy with the island, and one plan. Sizes inside the Mac are in cqw, like home.css,
   so the Mac scales as one picture. Without JS, or with reduced motion, the hero rests on its last step. */

/* ---------- Hero ---------- */
.tutor .hero .r1 { gap: 0 .14em; }
.tutor .hero .r1 .orb-slot { margin-left: .04em; }
.tutor .ctas { margin-top: 10px; }

/* ---------- The Mac: a practice paper, and the lesson beside it ---------- */
.t-mac .scene-paper { opacity: 1; visibility: visible; }
.t-mac .mi { --rim: rgba(60, 227, 164, .5); }
.t-mac .t-is { display: none; animation: rise .45s var(--ease); }
.t-mac[data-step="1"] .t-is[data-t~="1"], .t-mac[data-step="2"] .t-is[data-t~="2"],
.t-mac[data-step="3"] .t-is[data-t~="3"], .t-mac[data-step="4"] .t-is[data-t~="4"] { display: block; }
.t-mac .w4 { opacity: 0; transform: translateY(.5cqw); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.t-mac[data-on~="4"] .w4 { opacity: 1; transform: none; }
.t-mac[data-on~="4"] .dr.d4 { stroke-dashoffset: 0; }
.t-mac[data-on~="4"] .fd.d4 { opacity: 1; }

.t-pdf { left: 1.5cqw; top: 3.6cqw; width: 62cqw; bottom: 1.5cqw; display: flex; flex-direction: column; background: #CFCBC2; }
.t-sheet { position: relative; flex: 1; margin: 1.6cqw auto 0; width: 49cqw; padding: 5.4cqw 3.6cqw 2cqw; background: #FFFEFB; box-shadow: 0 .3cqw 1.6cqw rgba(0, 0, 0, .18); display: grid; gap: 1.9cqw; align-content: start; }
.t-sec { font: 700 .95cqw/1 var(--mac); letter-spacing: .1em; text-transform: uppercase; color: #8A8794; padding-bottom: 1cqw; border-bottom: .08cqw solid #E3DFD6; }
.t-q { position: relative; display: grid; grid-template-columns: 2.4cqw minmax(0, 1fr); gap: .6cqw; }
.t-q > b { font: 700 1.3cqw/1.5 Georgia, 'Times New Roman', serif; color: var(--paper-ink); }
.t-q > div { display: grid; gap: .8cqw; }
.t-q p { font: 400 1.24cqw/1.6 Georgia, 'Times New Roman', serif; color: #2B2934; }
.t-q i { display: block; height: .7cqw; margin-top: .55cqw; border-radius: .4cqw; background: #E6E2D9; }
.t-marks { justify-self: end; font: 600 1cqw/1 var(--mac); color: #8A8794; }
.t-ring { position: absolute; inset: -1cqw -1.2cqw; border-radius: 1cqw; pointer-events: none;
  box-shadow: 0 0 0 .2cqw rgba(60, 227, 164, .85), 0 0 2.4cqw rgba(60, 227, 164, .35); }
.t-mac .mk { transition-duration: 1.1s; }

.t-lesson { right: 1.5cqw; top: 3.6cqw; width: 33cqw; bottom: 1.5cqw; z-index: 4; }
.t-lesson .lt { font-size: 2.2cqw; }
.t-lesson .dots i { transition: background .4s; }
.t-mac[data-on~="3"] .t-lesson .dots .t-on3, .t-mac[data-on~="4"] .t-lesson .dots .t-on4 { background: var(--paper-ink); }
.t-cap { position: relative; min-height: 6cqw; font: 400 1.28cqw/1.42 var(--round); color: var(--paper-ink); }
.t-cap span { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.t-mac[data-step="2"] .t-cap .k2, .t-mac[data-step="3"] .t-cap .k3, .t-mac[data-step="4"] .t-cap .k4 { opacity: 1; }
.t-quiz { display: none; gap: .5cqw; flex-wrap: wrap; }
.t-quiz span { padding: .6cqw 1.1cqw; border-radius: .8cqw; font: 600 1.02cqw/1 var(--mac); color: var(--paper-ink); background: #fff; box-shadow: inset 0 0 0 .1cqw #D9D5CC; }
.t-mac[data-step="4"] .t-quiz { display: flex; animation: rise .45s var(--ease); }
.t-mac[data-step="4"] .t-chips { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .t-mac[data-step="4"] .t-quiz span:nth-child(3) { animation: t-pick 4.6s var(--ease) both; }
}
@keyframes t-pick { 0%, 48% { background: #fff; color: var(--paper-ink); box-shadow: inset 0 0 0 .1cqw #D9D5CC; } 56%, 100% { background: #E2F6EC; color: #11704E; box-shadow: inset 0 0 0 .14cqw #2BB383; } }

/* The board, shared by the hero and the difference */
.board .guide { fill: none; stroke: #A9A5B0; stroke-width: 1.3; stroke-linecap: round; }
.board .dot { fill: var(--paper-ink); }
.board .tax { fill: none; stroke: var(--water); stroke-width: 2.4; stroke-linecap: round; }
.board .tax-dot { fill: var(--water); }
.board text.tax-t { fill: var(--water); }
.board .wedge { fill: none; stroke: #D9822B; stroke-width: 2.2; stroke-linecap: round; }
.board text.wedge-t { fill: #C26E18; }
.board text.small { font-size: 11.5px; }

/* The phone layout of the Mac picture */
@container stage (max-width: 620px) {
  .t-mac .mi { --iwp: 88cqw; }
  .t-pdf { left: 4cqw; right: 4cqw; width: auto; top: 30cqw; bottom: auto; height: 62cqw; border-radius: 3cqw; }
  .t-sheet { width: auto; margin: 3cqw 3cqw 0; padding: 4cqw 4.4cqw; gap: 3.4cqw; }
  .t-sec { font-size: 2.4cqw; padding-bottom: 2cqw; }
  .t-q { grid-template-columns: 5cqw minmax(0, 1fr); gap: 1.4cqw; }
  .t-q > b { font-size: 3.4cqw; }
  .t-q p { font-size: 3.3cqw; }
  .t-q i { height: 1.8cqw; margin-top: 1.4cqw; border-radius: 1cqw; }
  .t-q > div { gap: 1.6cqw; }
  .t-q1, .t-q3, .t-q2 ~ .t-q { display: none; }
  .t-marks { font-size: 2.6cqw; }
  .t-ring { inset: -2cqw -2.2cqw; border-radius: 2.4cqw; box-shadow: 0 0 0 .5cqw rgba(60, 227, 164, .85), 0 0 5cqw rgba(60, 227, 164, .35); }
  .t-lesson { left: 4cqw; right: 4cqw; width: auto; top: 48cqw; bottom: 4cqw; }
  .t-lesson .lt { font-size: 5.6cqw; }
  .t-cap { min-height: 15cqw; font-size: 3.6cqw; }
  .t-quiz { gap: 1.4cqw; }
  .t-quiz span { padding: 1.8cqw 2.8cqw; border-radius: 2.2cqw; font-size: 3cqw; }
}

/* ---------- The difference: a wall of text, or a lesson on the page ---------- */
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); max-width: 1120px; margin-inline: auto; }
.vs-card { display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding: clamp(20px, 2.6vw, 32px); border-radius: 30px; }
.vs-chat { background: var(--surf); box-shadow: inset 0 0 0 1px var(--ln); }
.vs-spr { background: #F3F0EA; color: #0B0B0D; box-shadow: 0 50px 90px -50px rgba(255, 246, 232, .25); }
.vs-k { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.vs-spr .vs-k { color: rgba(11, 11, 13, .55); }
.vs-k .face { --s: 22px; background: radial-gradient(circle at 32% 26%, #4A4A52, #121214 60%); }
.vs-k .face i { background: #F3F0EA; }
.vs-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-3); }
.vs-chat-in { display: grid; gap: 14px; align-content: start; min-height: 320px; }
.vs-you { justify-self: end; max-width: 70%; padding: 10px 16px; border-radius: 18px 18px 4px 18px; background: #2B5FD9; color: #fff; font: 500 15px/1.4 var(--font); }
.vs-wall { position: relative; max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.vs-wall p { font: 400 15px/1.7 var(--font); color: var(--fg-2); }
.vs-lesson { display: grid; gap: 12px; align-content: start; min-height: 320px; padding: 20px 22px; border-radius: 22px; background: #FBFAF6; box-shadow: 0 0 0 1px rgba(11, 11, 13, .08), 0 24px 50px -34px rgba(7, 7, 8, .45); }
.vs-lt { font: 400 26px/1.05 var(--serif); letter-spacing: -.01em; color: var(--paper-ink); }
.vs-board { width: 100%; height: auto; max-height: 250px; }
.vs-board text { font: 600 13px var(--round); fill: var(--paper-ink); }
.vs-board .ink { fill: none; stroke: var(--paper-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vs-cap { display: flex; align-items: center; gap: 10px; font: 400 15.5px/1.4 var(--round); color: var(--paper-ink); }
.vs-live { display: inline-flex; gap: 3px; align-items: center; height: 14px; flex: none; }
.vs-live i { width: 3px; height: 100%; border-radius: 2px; background: #2BB383; }
@media (prefers-reduced-motion: no-preference) {
  .vs-live i { animation: bar .9s ease-in-out infinite alternate; }
  .vs-live i:nth-child(2) { animation-delay: -.3s; } .vs-live i:nth-child(3) { animation-delay: -.6s; }
}
.vs-chips span { padding: 8px 14px; font-size: 13px; }
.vs-list { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ln); }
.vs-spr .vs-list { border-color: rgba(11, 11, 13, .1); }
.vs-list li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.45; color: var(--fg-2); }
.vs-spr .vs-list li { color: rgba(11, 11, 13, .78); }
.vs-list li::before { content: ''; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='%23F3F0EA' stroke-opacity='.6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.vs-spr .vs-list li::before { background: #2BB383 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1180px; margin-inline: auto; counter-reset: how; }
.how-c { display: grid; gap: 10px; align-content: start; padding: 14px 14px 26px; border-radius: 28px; background: var(--surf); box-shadow: inset 0 0 0 1px var(--ln), 0 30px 60px -50px rgba(7, 7, 8, .4); }
.how-c > :not(.how-v) { padding-inline: 12px; }
.how-c h3 { font: 500 26px/1.05 var(--display); letter-spacing: -.03em; }
.how-c p { font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.how-c p .kc { min-width: 26px; height: 26px; font-size: 12px; }
.how-n { margin-top: 10px; font: 400 26px/1 var(--serif) !important; font-style: italic !important; color: var(--fg) !important; }
.how-v { position: relative; height: 190px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: #0B0B0D; color: var(--ink); }
.how-v1 { grid-auto-flow: column; gap: 10px; align-content: center; justify-content: center; place-items: center;
  background: radial-gradient(ellipse at 50% 120%, rgba(60, 227, 164, .22), transparent 60%), #0B0B0D; }
.kc.big { min-width: 64px; height: 64px; border-radius: 16px; font-size: 26px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 10px 24px -8px rgba(0, 0, 0, .7); }
.how-say { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap; padding: 7px 14px; border-radius: 99px; background: rgba(60, 227, 164, .14); color: var(--listen); font: 500 14px/1 var(--mac); }
@media (prefers-reduced-motion: no-preference) {
  .how-v1 .kc.big { animation: t-press 3.2s var(--ease) infinite; }
  .how-v1 .kc.big + .kc.big { animation-delay: .08s; }
  @keyframes t-press { 0%, 20%, 80%, 100% { transform: none; } 30%, 70% { transform: translateY(3px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(60, 227, 164, .6), 0 0 22px rgba(60, 227, 164, .35); } }
}
.how-v2 { background: #FBFAF6; color: var(--paper-ink); align-content: center; gap: 8px; padding: 18px 22px; }
.how-v2 svg { width: 100%; height: 120px; }
.how-v2 .hv-ax { fill: none; stroke: var(--paper-ink); stroke-width: 2; stroke-linecap: round; }
.how-v2 .hv-l { fill: none; stroke: var(--paper-ink); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.how-v2 .hv-l2 { stroke: var(--water); }
.how-v2 .hv-d { fill: var(--paper-ink); }
.how-cap { font: 400 14px/1.3 var(--round) !important; color: var(--paper-ink) !important; padding: 0 !important; }
@media (prefers-reduced-motion: no-preference) {
  .js .how:not(.in) .hv-l { stroke-dashoffset: 1; }
  .how .hv-l { transition: stroke-dashoffset 1.4s var(--ease) .5s; }
  .how .hv-l2 { transition-delay: 1.2s; }
  .js .how:not(.in) .hv-d, .js .how:not(.in) .how-cap { opacity: 0; }
  .how .hv-d, .how .how-cap { transition: opacity .6s var(--ease) 2.2s; }
}
.how-v3 { background: #FBFAF6; color: var(--paper-ink); align-content: center; justify-items: stretch; gap: 8px; padding: 18px 22px; place-items: initial; }
.hq-k { font: 600 11px/1 var(--mono) !important; letter-spacing: .08em; text-transform: uppercase; color: #8A8794 !important; padding: 0 !important; }
.hq-q { font: 500 17px/1.25 var(--display) !important; letter-spacing: -.01em; color: var(--paper-ink) !important; padding: 0 !important; }
.hq-a { display: flex; align-items: center; gap: 8px; padding: 9px 12px !important; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #E2DED6; font: 500 13.5px/1.2 var(--mac) !important; color: var(--paper-ink) !important; }
.hq-a.ok { background: #E2F6EC; box-shadow: inset 0 0 0 1.5px #2BB383; color: #11704E !important; }
.hq-a i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2BB383; color: #fff; font: 700 11px/1 var(--mac); font-style: normal; }

/* What it works on */
.study { margin-top: clamp(100px, 12vw, 160px); }
.study-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; max-width: 1180px; margin: 0 auto clamp(28px, 4vw, 48px); }
.study-head .lede { justify-self: end; max-width: 46ch; }
.study-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 1180px; margin-inline: auto; }
.st-c { display: grid; gap: 8px; align-content: start; padding: 12px 12px 22px; border-radius: 24px; background: var(--surf); box-shadow: inset 0 0 0 1px var(--ln); }
.st-c h3, .st-c p { padding-inline: 8px; }
.st-c h3 { margin-top: 8px; font: 500 21px/1.1 var(--display); letter-spacing: -.025em; }
.st-c h3 small { display: block; margin-top: 6px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #13875D; }
.st-c p { font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.st-v { position: relative; height: 128px; border-radius: 16px; overflow: hidden; background: var(--surf-2); display: grid; align-content: center; gap: 8px; padding: 16px 18px; }
.st-v i { display: block; height: 7px; border-radius: 4px; background: rgba(11, 11, 13, .12); }
.st-v i.short { width: 58%; }
.st-v b { font: 600 13px/1.2 var(--font); color: var(--fg); }
.st-slide { background: #1D2A44; aspect-ratio: auto; }
.st-slide b { color: #fff; font-size: 14px; }
.st-slide i { background: rgba(255, 255, 255, .22); }
.st-mk { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--listen), 0 0 16px rgba(60, 227, 164, .5); }
.st-pdf { background: #fff; margin: 0; box-shadow: inset 0 0 0 1px var(--ln); }
.st-pdf .mk-l { background: linear-gradient(90deg, rgba(255, 214, 10, .7), rgba(255, 214, 10, .7)); height: 9px; width: 76%; }
.st-past { background: #FFFEFB; box-shadow: inset 0 0 0 1px var(--ln); }
.st-past b { font: 700 16px/1 Georgia, serif; }
.st-marks { justify-self: end; font: 600 11px/1 var(--font); color: var(--fg-3); }
.st-web { background: #fff; box-shadow: inset 0 0 0 1px var(--ln); padding-top: 34px; }
.st-url { position: absolute; left: 0; right: 0; top: 0; height: 22px; background: var(--surf-2); }
.st-url::after { content: ''; position: absolute; left: 30%; right: 30%; top: 6px; height: 10px; border-radius: 5px; background: #fff; }
.st-phone { background: linear-gradient(160deg, #EDE7DA, #D9D1C1); place-items: center; }
.st-cam { width: 56px; height: 96px; border-radius: 14px; background: #0B0B0D; box-shadow: 0 0 0 3px #2A2A2F, 0 18px 30px -14px rgba(7, 7, 8, .6); display: grid; place-items: center; }
.st-cam i { width: 46px; height: 84px; border-radius: 9px; background-color: #FFFEFB;
  background-image: linear-gradient(#E2DED6, #E2DED6), linear-gradient(#E2DED6, #E2DED6), linear-gradient(rgba(255, 214, 10, .75), rgba(255, 214, 10, .75)), linear-gradient(#E2DED6, #E2DED6);
  background-size: 32px 3px, 26px 3px, 30px 6px, 22px 3px; background-position: 7px 16px, 7px 25px, 7px 35px, 7px 47px; background-repeat: no-repeat; }
.st-soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ln-2); }

/* Under the deck: the Library */
/* From the Library: five real shared lessons and the way in */
.lib-shelf { margin-top: clamp(64px, 8vw, 110px); }
.lib-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: 26px; }
.lib-h { margin-top: 12px; font: 500 clamp(30px, 3.4vw, 46px)/1 var(--display); letter-spacing: -.04em; color: var(--fg); }
.lib-h em { font: 400 1.06em/1 var(--serif); font-style: italic; letter-spacing: -.01em; }
.lib-sub { max-width: 400px; color: var(--fg-2); font-size: 15.5px; line-height: 1.5; }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; }
.lib-c { display: grid; gap: 4px; color: var(--fg); text-decoration: none; }
.lib-pic { position: relative; display: block; aspect-ratio: 1.28; margin-bottom: 10px; border-radius: 16px; overflow: hidden; background: var(--surf); box-shadow: 0 0 0 1px var(--ln), 0 24px 50px -30px rgba(0, 0, 0, .8); }
.lib-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.lib-play { position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 11, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); opacity: .92; transition: transform .3s var(--ease), background .3s; }
.lib-play svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.lib-c:hover .lib-pic img, .lib-c:focus-visible .lib-pic img { transform: scale(1.035); }
.lib-c:hover .lib-play { transform: scale(1.08); background: var(--listen, #3CE3A4); }
.lib-c:hover .lib-play svg { fill: #0A0A0B; }
.lib-t { font: 500 18px/1.25 var(--display); letter-spacing: -.02em; }
.lib-m { font: 500 11.5px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
.lib-all .lib-pic { background: radial-gradient(120% 90% at 20% 0%, rgba(60, 227, 164, .16), transparent 60%), var(--surf-2, var(--surf)); }
.lib-all-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.lib-all-n { font: 400 clamp(22px, 2.1vw, 28px)/1.12 var(--serif); font-style: italic; color: var(--fg-2); }
.lib-all-go { display: inline-flex; align-items: center; gap: 10px; font: 500 16px/1 var(--display); color: var(--fg); }
.lib-all-go span { transition: transform .3s var(--ease); }
.lib-all:hover .lib-all-go span { transform: translateX(4px); }
@media (max-width: 900px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .lib-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .lib-grid::-webkit-scrollbar { display: none; }
  .lib-c { scroll-snap-align: start; }
}

/* ---------- Why it works: five reasons, and the honest answer ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1180px; margin-inline: auto; }
.bc { display: grid; grid-template-rows: auto 1fr; gap: 18px; padding: 14px 14px 26px; border-radius: 28px; background: var(--surf); box-shadow: inset 0 0 0 1px var(--ln), 0 30px 60px -50px rgba(7, 7, 8, .4); }
.bc-wide { grid-column: span 2; }
.bc-ink { grid-column: 1 / -1; }
.bc-t { display: grid; gap: 8px; padding-inline: 12px; align-content: start; }
.bc h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 500 26px/1.05 var(--display); letter-spacing: -.03em; }
.bc p { font-size: 15px; line-height: 1.55; color: var(--fg-2); max-width: 52ch; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--ln-2); }
.bc-v { position: relative; min-height: 170px; border-radius: 18px; overflow: hidden; padding: 22px 24px; background: var(--surf-2); display: grid; align-content: center; gap: 12px; }
.bv-page { background: #FFFEFB; box-shadow: inset 0 0 0 1px var(--ln); }
.bv-page p { font: 400 clamp(16px, 1.5vw, 20px)/1.7 Georgia, 'Times New Roman', serif; color: #2B2934; max-width: 60ch; }
.bv-page mark { color: inherit; background: linear-gradient(transparent 58%, rgba(255, 214, 10, .6) 58%, rgba(255, 214, 10, .6) 94%, transparent 94%); }
.bv-tag { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 99px; background: #0B0B0D; color: var(--ink); font: 500 12.5px/1 var(--mac); }
.bv-tag .face { --s: 18px; }
.bv-drawn { background: #0B0B0D; }
.bc .bv-cc { font: 400 19px/1.35 var(--round); color: var(--ink); max-width: none; }
.bv-chips span { background: rgba(255, 255, 255, .1); color: var(--ink); padding: 8px 14px; font-size: 13px; }
.bv-chips span.pri { background: var(--ink); color: var(--night); }
.bv-parts { background: linear-gradient(140deg, #1D2A44, #0E1626); color: #fff; }
.bv-pk { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6) !important; }
.bv-pt { font: 400 34px/1 var(--serif); color: #fff !important; }
.bv-pd { display: flex; gap: 6px; }
.bv-pd i { width: 30px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.bv-pd i.on { background: var(--listen); }
.bv-quiz { background: #E2F6EC; }
.bv-qs { font: 500 64px/1 var(--display); letter-spacing: -.05em; color: #11704E !important; }
.bv-qs b { font-weight: 600; }
.bv-ql { font: 500 14px/1.4 var(--font); color: #11704E !important; }
.bv-src { background: #fff; box-shadow: inset 0 0 0 1px var(--ln); }
.bc .bv-src p { font: 400 15px/1.6 var(--round); color: var(--paper-ink); }
.bv-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #E3ECF9; color: #2C4A7A; font: 700 10.5px/1 var(--mac); vertical-align: 2px; }
.bv-srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.bv-srcs span { padding: 6px 10px; border-radius: 8px; background: #F1EFEA; font: 500 12px/1 var(--mac); color: var(--paper-mute); }
.bc-ink { background: #0B0B0D; color: var(--ink); grid-template-rows: 1fr; align-items: center; padding: clamp(26px, 3.4vw, 44px); }
.bc-ink .bc-t { gap: 14px; padding: 0; }
.bc-q { font: 500 clamp(30px, 3.4vw, 46px)/1 var(--display) !important; letter-spacing: -.035em; color: var(--ink) !important; }
.bc-a { font: 400 clamp(17px, 1.5vw, 20px)/1.5 var(--font) !important; color: rgba(243, 240, 234, .72) !important; max-width: 56ch !important; }
.bc-a em { font-family: var(--serif); font-size: 1.2em; color: var(--ink); }

/* ---------- Privacy, with the island; then what else it does ---------- */
.tr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; max-width: 1180px; margin-inline: auto; }
.tr-copy { display: grid; gap: 22px; justify-items: start; }
.tr-list { display: grid; gap: 4px; width: 100%; margin-top: 6px; }
.tr-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--ln); }
.tr-list b { font: 500 18px/1.25 var(--display); letter-spacing: -.01em; }
.tr-list span { font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.tr-link { color: var(--link); }
.tr-stage { position: relative; display: grid; place-items: start center; min-height: 420px; padding-top: 40px; border-radius: 32px; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0, rgba(255, 246, 232, .12), transparent 70%), linear-gradient(160deg, #1D1B17, #0B0B0C 62%); box-shadow: inset 0 0 0 1px var(--ln); }
.tr-isl { width: min(380px, 86%); padding: 0 22px 20px; border-radius: 0 0 30px 30px; background: #000; box-shadow: inset 0 0 0 2px var(--rim, rgba(255, 255, 255, .06)), 0 30px 60px -20px #000; transition: box-shadow .5s var(--ease); }
.tr-isl[data-s="1"] { --rim: rgba(60, 227, 164, .55); }
.tr-isl[data-s="2"] { --rim: rgba(140, 200, 255, .45); }
.tr-isl .bi-band { height: 40px; display: flex; align-items: center; justify-content: space-between; }
.tr-isl .bi-band .face { --s: 22px; }
.tr-isl .bi-cam { width: 10px; height: 10px; border-radius: 50%; background: #1B1B22; box-shadow: inset 0 0 0 2px #2A2A33; }
.tr-states { display: grid; }
.tr-s { grid-area: 1 / 1; display: grid; gap: 6px; font: 500 17px/1.35 var(--mac); color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.tr-isl[data-s="0"] .tr-s[data-k="0"], .tr-isl[data-s="1"] .tr-s[data-k="1"], .tr-isl[data-s="2"] .tr-s[data-k="2"] { opacity: 1; transform: none; }
.tr-s b { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px/1 var(--mac); color: var(--c, var(--ink-3)); }
.tr-s b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.tr-s .dot-listen { --c: var(--listen); }
.tr-s .dot-teach { --c: var(--link); }

/* The island shows every state it can be in: two more after Teaching */
.tr-isl[data-s="3"] { --rim: rgba(255, 179, 64, .6); }
.tr-isl[data-s="4"] { --rim: rgba(255, 92, 80, .62); }
.tr-isl[data-s="3"] .tr-s[data-k="3"], .tr-isl[data-s="4"] .tr-s[data-k="4"] { opacity: 1; transform: none; }
.tr-s .dot-ask { --c: var(--caution); }
.tr-s .dot-scam { --c: var(--danger); }
.tr-yn { display: flex; gap: 8px; margin-top: 4px; }
.tr-yn span { flex: 1; padding: 9px; border-radius: 10px; text-align: center; font: 600 13px/1 var(--mac); background: rgba(255, 255, 255, .1); color: var(--ink); }
.tr-yn span:first-child { background: #F3F0EA; color: #0A0A0B; }

/* ---------- How it works: one sentence, read as you scroll (home.js lights each word and chip) ---------- */
.line-in { display: grid; justify-items: center; gap: clamp(20px, 2.6vw, 34px); width: 100%; }
.line .draw-chip { width: 1.7em; padding: 0 .14em; background: #FBFAF6; box-shadow: 0 0 0 .04em rgba(11, 11, 13, .12), 0 .2em .5em -.25em rgba(11, 11, 13, .3); }
.line .draw-chip svg { width: 100%; height: .74em; overflow: visible; }
.line .draw-chip path { fill: none; stroke: var(--paper-ink); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--o, 1)); }
.line .draw-chip .dc-ax { stroke-width: 2.2; opacity: .55; }
.line .draw-chip .dc-b { stroke: var(--water); }
.line .draw-chip .dc-d { fill: var(--paper-ink); opacity: calc((var(--o, 1) - .85) * 7); }
.line .quiz-chip { gap: .45em; height: 2.4em; padding: 0 .55em 0 .3em; font: 600 .36em/1 var(--mac); letter-spacing: 0; box-shadow: 0 0 0 .1em var(--listen), 0 0 .6em rgba(60, 227, 164, .45); }
.line .quiz-chip i { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--listen); color: #0B0B0D; font-style: normal; font-size: .9em; }
.how-ch.line-ch { padding-bottom: clamp(110px, 13vw, 180px); }
.how-ch .study { margin-top: 0; }
.motion .how-ch .study { margin-top: clamp(-60px, -4vw, -20px); }

/* ---------- Beyond lessons: one Mac with three tabs, four short films, the small things ---------- */
.more-ch { padding-bottom: clamp(110px, 13vw, 180px); }
.more-demo { margin-top: clamp(30px, 4vw, 54px); }
.more-ch .doors { background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px var(--ln), 0 18px 40px -30px rgba(7, 7, 8, .35); }
.door-notes { display: grid; max-width: 640px; margin: 24px auto 0; text-align: center; font-size: 15.5px; line-height: 1.45; color: var(--fg-2); }
.door-notes span { grid-area: 1 / 1; opacity: 0; transform: translateY(4px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.more-demo:has(.mac[data-door="learn"]) [data-for="learn"],
.more-demo:has(.mac[data-door="type"]) [data-for="type"],
.more-demo:has(.mac[data-door="do"]) [data-for="do"] { opacity: 1; transform: none; }
/* Do it waits for a yes before it sends: the island goes amber while it asks */
.mac[data-door="do"][data-step="2"] .scene-do[data-ask] .mi { --rim: rgba(255, 179, 64, .7); }
.more-bites { max-width: 1120px; margin: clamp(70px, 8vw, 110px) auto 0; }
.smalls { display: grid; justify-items: center; gap: clamp(26px, 3.4vw, 44px); margin-top: clamp(100px, 12vw, 160px); text-align: center; }
.fx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 1180px; text-align: left; }
.fx .fc, .motion .fx .fc { position: relative; left: auto; top: auto; width: auto; height: auto; min-height: 380px; margin: 0; transform: none; will-change: auto; }
.fx .fc { grid-template-rows: 210px auto 1fr; align-content: start; }
.fx .fm, .motion .fx .fm { min-height: 0; height: 100%; }
.fx .fc h3 { font-size: 27px; }
@media (max-width: 1100px) { .fx { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; } .fx .fc, .motion .fx .fc { min-height: 340px; } }
@media (max-width: 620px) {
  .fx { display: flex; gap: 12px; width: calc(100% + 40px); margin: 0 -20px; padding: 2px 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
  .fx::-webkit-scrollbar { display: none; }
  .fx .fc, .motion .fx .fc { flex: 0 0 min(78vw, 300px); min-height: 360px; scroll-snap-align: start; }
}

/* ---------- One plan ---------- */
.plans2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.plans2 .plan { gap: 16px; }
.plans2 .plan .btn { justify-self: start; margin-top: 8px; }
.pp-word { font-size: 44px !important; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .study-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .how { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .vs { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-wide, .bc-ink { grid-column: 1 / -1; }
  .tr-grid { grid-template-columns: minmax(0, 1fr); }
  .tr-stage { min-height: 300px; }
  .study-head { grid-template-columns: minmax(0, 1fr); }
  .study-head .lede { justify-self: start; }
}
@media (max-width: 620px) {
  .study-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .study-row .st-soon { grid-column: span 2; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bc-wide, .bc-ink { grid-column: auto; }
  .plans2 { grid-template-columns: minmax(0, 1fr); }
  .vs-chat-in, .vs-lesson { min-height: 0; }
  .vs-wall { max-height: 220px; }
}
@media (max-width: 420px) {
  .study-row { grid-template-columns: minmax(0, 1fr); }
  .study-row .st-soon { grid-column: auto; }
}

/* While it listens the paper sits in the middle; it moves aside as the lesson opens */
.t-pdf { transition: transform .9s var(--ease); }
.js .t-mac:not([data-on~="2"]) .t-pdf { transform: translateX(17.5cqw); }
@container stage (max-width: 620px) { .js .t-mac:not([data-on~="2"]) .t-pdf { transform: none; } }

/* Under the island: the two promises, drawn */
.tr-cards { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: min(420px, 88%); display: grid; gap: 10px; }
.tr-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(243, 240, 234, .06); box-shadow: inset 0 0 0 1px var(--ln); }
.tr-card b { display: block; font: 500 14.5px/1.3 var(--mac); color: var(--ink); }
.tr-card small { display: block; font: 400 12.5px/1.35 var(--mac); color: var(--ink-3); }
.tr-pw { flex: none; width: 120px; padding: 9px 12px; border-radius: 9px; background: #1B1B1F; font: 600 13px/1 var(--mac); letter-spacing: .18em; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; overflow: hidden; }
.tr-pw::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(243, 240, 234, .14) 0 6px, transparent 6px 12px); }
.tr-nb { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #F3F0EA; color: #0B0B0D; }
.tr-nb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (max-width: 900px) { .tr-stage { min-height: 380px; } }


/* ---------- The hero film: Springle lessons, playing muted on the laptop until sound is asked for ---------- */
.hero-film .hf-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 1.2cqw; overflow: hidden; background: #F3F0EA; }
.hf-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hf-sound { position: absolute; left: 2cqw; bottom: 2cqw; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(10, 10, 11, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: 500 14px/1 var(--font); cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 30px -12px rgba(0, 0, 0, .5); transition: background .25s, transform .25s var(--ease); }
.hf-sound:hover { background: rgba(10, 10, 11, .88); transform: translateY(-1px); }
.hf-sound:focus-visible { outline: 2px solid var(--listen); outline-offset: 3px; }
.hf-ic svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.hf-sound .hf-on, .hf-sound[aria-pressed="true"] .hf-off { display: none; }
.hf-sound[aria-pressed="true"] .hf-on { display: block; color: var(--listen); }
@media (max-width: 620px) { .hf-sound { height: 34px; padding: 0 12px 0 9px; font-size: 13px; } .hf-ic svg { width: 17px; height: 17px; } }

/* ---------- Springle for iPhone (home #iphone and /iphone) ---------- */
.iph { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.iph-new { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 99px; background: #0B0B0D; color: var(--listen); font-weight: 500; }
.iph-words .h2 { margin-top: 18px; font-size: clamp(44px, 5.2vw, 80px); }
.iph-lede { margin-top: 22px; max-width: 520px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--fg-2); }
.iph-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; max-width: 540px; }
.iph-list li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; color: var(--fg-2); }
.iph-list li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--listen); box-shadow: 0 0 0 3px rgba(60, 227, 164, .18); }
.iph-list b { color: var(--fg); font-weight: 600; }
.iph-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.iph-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .25s var(--ease); }
.iph-badge:hover { transform: translateY(-2px); }
.iph-badge img { height: 50px; width: auto; }
.iph-soon { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; border-radius: 999px; background: var(--surf); box-shadow: inset 0 0 0 1px var(--ln); font-weight: 500; font-size: 15px; color: var(--fg); }
.iph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--listen); box-shadow: 0 0 8px var(--listen); animation: iph-pulse 2.4s ease-in-out infinite; }
@keyframes iph-pulse { 50% { opacity: .35; } }
.iph-fine { margin-top: 16px; font-size: 13.5px; color: var(--fg-3); }
[hidden] { display: none !important; }

.iph-phones { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); align-items: start; }
.iph-ph { margin: 0; display: grid; gap: 14px; justify-items: center; }
.iph-p1, .iph-p3 { margin-top: clamp(30px, 5vw, 70px); }
.iph-frame { position: relative; display: block; width: 100%; aspect-ratio: 660 / 1434; padding: 3.2%; border-radius: 17% / 7.8%; background: linear-gradient(160deg, #2A2A2E, #0B0B0D 55%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 40px 70px -36px rgba(30, 20, 10, .55), 0 18px 30px -22px rgba(30, 20, 10, .35); }
.iph-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14% / 6.6%; }
.iph-frame::after { content: ''; position: absolute; top: 4.6%; left: 50%; width: 30%; height: 2.6%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.iph-ph figcaption { font: 500 11.5px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); text-align: center; }
@media (max-width: 1000px) { .iph { grid-template-columns: 1fr; } .iph-phones { max-width: 640px; margin-inline: auto; width: 100%; } }
@media (max-width: 560px) {
  .iph-phones { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 10px; scrollbar-width: none; }
  .iph-phones::-webkit-scrollbar { display: none; }
  .iph-ph { scroll-snap-align: center; }
  .iph-p1, .iph-p3 { margin-top: 0; }
}

/* /iphone on its own: the chapter is the top of the page, and a short word for Mac visitors after it */
.iph-page main > .iph-ch { padding-top: clamp(120px, 14vw, 170px); }
.iph-page .iph-ch .h2 { font-size: clamp(46px, 6vw, 92px); }
@media (max-width: 1000px) { .iph-page .iph-phones { order: -1; margin-bottom: 8px; } }
.iph-mac-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.iph-mac-t { margin: 0; font: 500 clamp(26px, 3vw, 40px)/1.1 var(--display); letter-spacing: -.03em; color: var(--fg); }
.iph-mac-t em { font: 400 1.06em/1 var(--serif); font-style: italic; }
.iph-mac-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.iph-home { display: inline-flex; gap: 8px; color: var(--fg-2); text-decoration: none; font-weight: 500; }
.iph-home:hover { color: var(--fg); }


/* "Learn anything" and the face stay on one line on a phone: the headline scales to the screen's width. */
@media (max-width: 620px) {
  .tutor .hero .h1 { font-size: min(64px, calc((100vw - 32px) / 8.4)); }
  .tutor .hero .r1 { flex-wrap: nowrap; }
  .tutor .pill { white-space: nowrap; font-size: min(12.5px, 3.5vw); }
}
