@import url("../arsenal/word-window.css");

/* Who we help. The header: the word holds the fields' work. */
.wwh .word-window__media:nth-child(1) { --ww-focus: 50% 30%; }
.wwh .word-window__media:nth-child(2) { --ww-focus: 62% 24%; }
.wwh .word-window__media:nth-child(3) { --ww-focus: 50% 30%; }
.wwh .word-window__media { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.wwh { padding-block: clamp(2.5rem, 4.5vw, 4rem); }
.wwh .word-window__after { flex-direction: column; gap: 1.25rem; }
.wwh__cta { flex-direction: column; margin: 0; gap: .6rem; }
.wwh .cta-row__note { color: var(--c-on-ink-soft); }
.stop--wwh { right: var(--gutter); top: 1rem; }

/* the index: seven hairline rows at the left, the field's photo at the right */
.fld__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: stretch; }
.fld__tabs { display: grid; border-top: 1px solid var(--c-line); }
.fld__tab, .fld__more { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; width: 100%; padding: .85rem .25rem .9rem 0; border: 0; border-bottom: 1px solid var(--c-line); background: none; color: var(--c-ink); text-align: left; font: inherit; cursor: pointer; }
.fld__name { font: 400 var(--fs-h3) / 1.2 var(--font-display); letter-spacing: var(--tracking-display); }
.fld__fields { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--c-ink-soft); }
.fld__means { grid-column: 1 / -1; font: 700 var(--fs-small) / 1.3 var(--font-ui); color: var(--c-brand-text); }
.fld__tab .fld__means { display: none; }
.fld__tab[aria-selected="true"] .fld__means { display: block; }
.fld__tab:hover .fld__name, .fld__more:hover .fld__name { color: var(--c-brand-text); }
.fld__fill { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c-brand); transform-origin: 0 50%; transform: scaleX(0); }
.fld__tab[aria-selected="true"] .fld__fill { transform: scaleX(1); }
.fld__tabs[data-kit-on] .fld__tab[aria-selected="true"] .fld__fill { transform: scaleX(var(--kit-fill, 0)); }
.fld__more { align-items: center; text-decoration: none; }
.fld__more .btn__arrow { grid-column: 2; grid-row: 1; width: 22px; height: 22px; color: var(--c-brand-text); }
.fld__stage { position: relative; min-height: 600px; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-m); }
.fld__panel { position: absolute; inset: 0; }
.fld__panel:focus-visible { outline: 3px solid var(--c-brand); outline-offset: -3px; }
.fld__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fld__panel--law .fld__photo { object-position: 46% 50%; }
.fld__panel--health .fld__photo { object-position: 30% 50%; }
.fld__panel--finance .fld__photo { object-position: 50% 42%; }
.fld__panel--accounting .fld__photo { object-position: 86% 50%; }
.fld__panel--realestate .fld__photo { object-position: 70% 50%; }
.fld__panel--home .fld__photo { object-position: 22% 50%; }
.stop--fld { right: .9rem; top: .9rem; }
.fld__cards { display: none; margin: 0; padding: 0; list-style: none; }

/* the question, on the paper with the site's rule running across it */
.asks { overflow: hidden; }
.asks::before { content: ""; position: absolute; right: -4vw; top: -6vw; width: 34vw; aspect-ratio: 1; background: var(--c-brand); opacity: .07; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 20.5C5.5 12.5 12.5 6.5 21.5 5.2 15 8.6 10 13.6 7.6 20.5Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 20.5C5.5 12.5 12.5 6.5 21.5 5.2 15 8.6 10 13.6 7.6 20.5Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.asks .wrap { position: relative; }
.asks__head { margin-bottom: clamp(1.75rem, 3.4vw, 2.75rem); }
.asks__stage { position: relative; }
.asks .asks__stage .asks__scene { width: 100%; }
.stop--asks { right: 0; top: -3.25rem; }

/* the free plan, on a general shot: the scene stands over the calendar's corner */
.pln__frame { position: relative; height: clamp(600px, 50vw, 660px); overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-m); }
.pln__pic { position: absolute; inset: 0; }
.pln__photo { position: absolute; inset: 0; margin: 0; }
.pln__photo > img { object-position: 50% 42%; }
.pcal { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 22px 26px 20px; background: var(--c-paper); color: var(--c-ink); }
.pcal [data-d]::before { content: attr(data-d); } /* a picture on the tablet's screen, not page text */
.pcal__t { margin: 0; font: 400 30px/1 var(--font-display); letter-spacing: var(--tracking-display); }
.pcal__g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 5px; }
.pcal__g b, .pcal__g i { display: grid; place-items: center; font: 700 21px/1 var(--font-ui); }
.pcal__g b { color: var(--c-ink-soft); }
.pcal__g i { border-radius: var(--radius-s); background: var(--c-paper-alt); font-style: normal; }
.pcal__g i.on { background: var(--c-brand); color: var(--c-on-brand); }
.pln__frame .pln__scene { position: absolute; left: 1.25rem; top: 50%; translate: 0 -50%; width: min(720px, 60%); height: 560px; }
.stop--pln { right: .9rem; top: .9rem; }

/* however they buy: the ink lit from its center */
.buy { background: radial-gradient(90% 80% at 50% 46%, var(--c-blue-glow) 0%, var(--c-blue) 42%, var(--c-ink) 100%); }
.buy__head { margin-inline: auto; text-align: center; }
.buy__head .head__title::after { margin-inline: auto; }
.buy__stage { position: relative; }
.buy .buy__stage .buy__scene { width: 100%; height: 520px; background: none; }
.stop--buy { right: 0; top: -3.25rem; }

/* a way in for everyone else */
.any__head { margin-inline: auto; text-align: center; }
.any__head .head__title::after { margin-inline: auto; }
.any__head .head__line { margin-inline: auto; }
.any__stage { position: relative; display: flex; justify-content: flex-end; min-height: 640px; }
.any__frame { position: absolute; left: 0; right: 56px; top: 0; bottom: 0; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.any__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.any__cta { justify-content: center; }
.stop--any { left: .9rem; top: .9rem; right: auto; }
.phone { position: relative; display: grid; grid-template-rows: auto 1fr; width: min(310px, 100%); height: 600px; margin-block: 20px; padding: 14px; border-radius: 40px; background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l), 0 0 0 9px var(--c-ink-3), 0 0 0 10px var(--c-line-ink); opacity: calc(1 - var(--kit-out, 0) * .35); }
.phone__head { display: flex; align-items: center; gap: .7rem; padding: .5rem .5rem .9rem; border-bottom: 1px solid var(--c-line); }
.phone__head img { width: 36px; height: 36px; padding: 3px; border-radius: 10px; background: var(--c-card); border: 1px solid var(--c-line); }
.phone__head span { display: grid; gap: .1rem; }
.phone__head b { font: 700 1rem/1.15 var(--font-ui); }
.phone__head span span { font-size: .9rem; color: var(--c-ink-soft); }
.phone__msgs { display: flex; flex-direction: column; justify-content: flex-end; gap: .55rem; overflow: hidden; padding: .75rem .25rem .25rem; }
.phone__msgs::after { content: ''; flex: 1 1 0; min-height: 0; }
.msg { margin: 0; max-width: 86%; padding: .7rem .9rem; border-radius: 16px; font-size: 1rem; line-height: 1.35; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.msg--them { align-self: flex-start; background: var(--c-paper-alt); border-bottom-left-radius: 5px; }
.msg--me { align-self: flex-end; background: var(--c-blue); color: var(--c-on-ink); border-bottom-right-radius: 5px; font-weight: 600; }
.msg--chips { align-self: flex-start; display: flex; gap: .4rem; padding: 0; background: none; }
.msg--chips span { display: grid; place-items: center; min-width: 46px; height: 40px; border-radius: var(--radius-m); border: 1px solid var(--c-line); background: var(--c-card); font: 400 1rem/1 var(--font-display); transition: background-color var(--dur-fast), color var(--dur-fast); }
.msg--chips span[data-kit-on] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.msg--typing { display: inline-flex; gap: 5px; padding: .85rem 1rem; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: dots 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }

.end--clinic .end__video { object-position: 50% 24%; }

@media (max-width: 1100px) {
  .fld__in { grid-template-columns: minmax(0, 1fr); }
  .fld__stage { min-height: 460px; order: -1; }
}

@media (max-width: 760px) {
  .fld__in { display: none; }
  .fld__cards { display: grid; gap: 1.75rem; }
  .fld__card { display: grid; gap: .2rem; }
  .fld__card .fld__photo { position: static; height: 260px; margin-bottom: .75rem; border-radius: var(--radius-m); }
  .fld__card--law .fld__photo { object-position: 44% 50%; }
  .fld__card--health .fld__photo { object-position: 26% 50%; }
  .fld__card--finance .fld__photo { object-position: 50% 38%; }
  .fld__card--accounting .fld__photo { object-position: 86% 50%; }
  .fld__card--realestate .fld__photo { object-position: 70% 50%; }
  .fld__card--home .fld__photo { object-position: 22% 50%; }
  .fld__more { padding: 1rem 0; border-block: 1px solid var(--c-line); }
  .pln__frame { height: 720px; }
  .pln__pic { bottom: auto; height: 560px; }
  .pln__photo > img { object-position: 60% 50%; }
  .pln__frame .pln__scene { left: 50%; top: auto; bottom: .5rem; translate: -50% 0; width: min(346px, 100% - 1rem); height: 650px; }
  .stop--pln { top: .35rem; right: .5rem; width: 34px; height: 34px; }
  .buy .buy__stage .buy__scene { height: auto; min-height: 800px; }
  .stop--buy { top: -3rem; }
  .any__stage { display: block; min-height: 0; padding-top: 300px; }
  .any__frame { right: 0; bottom: auto; height: 560px; }
  .any__frame img { object-position: 46% 50%; }
  .phone { width: min(300px, 100% - 2rem); height: 480px; margin: 0 auto; }
  .stop--any { top: 146px; }
}
