/* Websites page — edkursiss.com */

/* ─── Hero ─────────────────────────────────────────────────── */
.w-hero { padding: var(--hero-pad) 0 clamp(56px, 7vw, 96px); }
.w-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 3.5vw, 48px); align-items: center;
}
@media (min-width: 721px) { .w-hero-title .hl { white-space: nowrap; } }
.w-hero-copy { min-width: 0; display: grid; gap: 26px; align-content: start; }
.w-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.w-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; color: var(--ink-3); font-size: 0.9375rem; }
.w-hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.w-hero-meta .mono { color: var(--ink-2); }
.w-facts { list-style: none; display: grid; gap: 8px; max-width: 34em; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.w-facts li { padding-left: 16px; position: relative; }
.w-facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 1.5px; background: var(--ink-3); }
.w-facts .mono { color: var(--ink); white-space: nowrap; }
.w-lang-note { color: var(--ink-3); }
.w-person { display: flex; align-items: center; gap: 12px; }
.w-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; border: 1px solid var(--line-2); }
.w-person p { display: grid; gap: 1px; font-size: 0.875rem; color: var(--ink-3); line-height: 1.35; }
.w-person strong { color: var(--ink); font-weight: 650; }
.w-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 0.875rem; color: var(--ink-3); }
.w-lang nav { display: inline-flex; align-items: center; gap: 2px; }
.w-lang nav span { padding: 0 2px; }
.w-lang a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 6px; font-weight: 600; color: var(--accent); text-decoration: none; border-radius: 4px; }
.w-lang a:hover { text-decoration: underline; }
.w-lang a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; pointer-events: none; }
.w-also { padding-top: clamp(8px, 2vw, 20px); padding-bottom: clamp(28px, 4vw, 44px); color: var(--ink-2); }
.w-also a { font-weight: 600; white-space: nowrap; }

.w-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.w-board .shot--main { grid-column: 1 / -1; }
.shot { margin: 0; }
.shot .browser { box-shadow: var(--shadow-sheet); border-color: var(--line); }
.shot figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.875rem; font-weight: 600; }
.shot-pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; background: var(--paper-2); }
.shot-pic > picture, .shot-pic > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 1.8cqw; padding: 4cqw; width: 54%;
  color: #1b1a22; background: linear-gradient(90deg, rgba(252, 250, 248, .95) 0%, rgba(252, 250, 248, .82) 68%, rgba(252, 250, 248, 0) 100%);
}
.shot-copy b { font-size: 4.6cqw; line-height: 1.02; font-weight: 720; font-stretch: 104%; letter-spacing: -0.03em; }
.shot-btn { padding: 1.3cqw 2.8cqw; border-radius: 99px; font-size: 1.9cqw; font-weight: 620; background: #1b1a22; color: #fff; }
.shot-note { font-size: 1.7cqw; opacity: .8; }
.w-board .shot:not(.shot--main) .shot-pic { aspect-ratio: 16 / 10; }
.w-board .shot:not(.shot--main) figcaption { font-size: 0.8125rem; }
.w-board .shot--main { grid-column: 1 / -1; }
.w-board .shot:not(.shot--main) .browser-bar { display: none; }
/* plan view pins each concept as a paper print: the caption belongs on the print, not on the blueprint */
.plan-view .shot { background: #fff; border-radius: var(--r-lg); }
.plan-view .shot .browser { border-color: transparent; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.plan-view .shot figcaption { margin-top: 0; padding: 8px 10px 9px; border-top: 1px solid var(--line); }

/* ─── Old vs new ───────────────────────────────────────────── */
.on-wrap { display: grid; gap: 14px; }
.oldnew {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 7.6; border-radius: var(--r-lg); overflow: hidden;
  container-type: inline-size; border: 1px solid var(--ink);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; background: var(--sheet);
}
.oldnew:has(.oldnew-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-layer { position: absolute; inset: 0; }
.on-new { clip-path: inset(0 0 0 var(--pos)); background: var(--sheet); }
.on-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; border-left: 1.5px solid var(--ink); z-index: 3; pointer-events: none; }
.on-handle span {
  position: absolute; top: 50%; left: 0; width: 42px; height: 42px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: var(--sheet); border: 1.5px solid var(--ink);
  box-shadow: 0 6px 16px -6px rgba(15, 24, 40, .35);
}
.on-handle svg { width: 18px; height: 18px; }
.on-label { position: absolute; top: 10px; z-index: 2; padding: 3px 8px; border-radius: 4px; font-size: 0.8125rem; font-weight: 600; pointer-events: none; }
.on-label--old { left: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 0 0 1px rgba(15, 24, 40, .12); }
.on-label--new { right: 10px; background: var(--ink); color: var(--on-ink); }
.oldnew-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 4; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.oldnew-range { pointer-events: none; }
.oldnew-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 600px; cursor: ew-resize; pointer-events: auto; }
.oldnew-range::-moz-range-thumb { width: 56px; height: 600px; border: 0; cursor: ew-resize; pointer-events: auto; }

/* deliberately bad old site */
.old { background: #ece9df; color: #3b3a35; font-family: "Times New Roman", Times, serif; padding: 5cqw 4cqw 0; height: 100%; overflow: hidden; }
.old-title { font-size: 3.2cqw; font-weight: 700; color: #14247a; text-decoration: underline; }
.old-nav { margin: 1.4cqw 0; font-size: 1.7cqw; color: #14247a; }
.old-img { height: 11cqw; margin: 1.6cqw 0; border: 1px solid #b9b4a5; background: repeating-linear-gradient(45deg, #ddd8ca, #ddd8ca 8px, #d0cbbc 8px, #d0cbbc 16px); display: grid; place-items: center; font-size: 1.6cqw; color: #6a6555; }
.old-text { font-size: 1.9cqw; line-height: 1.35; color: #55534c; max-width: 62%; }
.old-marquee { margin-top: 2cqw; font-size: 1.8cqw; color: #a03c3c; white-space: nowrap; overflow: hidden; }
.old-marquee span { display: inline-block; }

/* the new one */
.new { height: 100%; display: flex; flex-direction: column; background: #fcfaf8; color: #1b1a22; }
.new-bar { display: flex; align-items: center; gap: 2.6cqw; padding: 4.6cqw 3.2cqw 1.9cqw; font-size: 1.5cqw; border-bottom: 1px solid #e6e1da; }
.new-logo { font-weight: 720; font-size: 2.1cqw; letter-spacing: -0.02em; }
.new-nav { display: flex; gap: 2.4cqw; color: #6b6762; }
.new-lang { margin-left: auto; color: #6b6762; font-size: 1.3cqw; letter-spacing: .04em; }
.new-book { background: #1b1a22; color: #fff; padding: 0.9cqw 2cqw; border-radius: 99px; font-weight: 600; font-size: 1.4cqw; }
.new-hero { position: relative; flex: 1; overflow: hidden; }
.new-hero picture, .new-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.new-hero .shot-copy { left: auto; right: 0; width: 50%; padding: 4cqw 4.4cqw; background: linear-gradient(270deg, rgba(252, 250, 248, .95) 0%, rgba(252, 250, 248, .82) 68%, rgba(252, 250, 248, .55) 100%); }
.new-hero .shot-copy b { font-size: 4.2cqw; }
.new-hero .shot-btn { font-size: 1.7cqw; }
.new-strip { display: flex; gap: 3cqw; padding: 1.7cqw 3.2cqw; font-size: 1.45cqw; color: #6b6762; border-top: 1px solid #e6e1da; }
.new-strip span:last-child { margin-left: auto; color: #1b1a22; font-weight: 600; }

/* ─── While you work: three details on one sheet ─────────── */
.w-details {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto;
  border: var(--pen-1, 1px) solid var(--ink); border-radius: 2px; background: var(--sheet);
}
.w-detail { position: relative; min-width: 0; display: grid; grid-template-rows: auto 1fr; }
@supports (grid-template-rows: subgrid) {
  .w-detail { grid-row: span 2; grid-template-rows: subgrid; }
}
.w-detail-fig {
  position: relative; display: grid; justify-items: center; align-content: start; padding: 22px 20px 24px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
}
.w-detail-copy { display: grid; gap: 12px; align-content: start; padding: 22px 20px 26px; }
.w-detail-copy p { color: var(--ink-2); }
.w-detail-copy .checks { margin-top: 2px; font-size: 0.9375rem; }
/* the sheet's inner rules: one across under the drawings, then one down between each pair of details */
.w-detail-fig::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--pen-1, 1px); background: var(--line-2);
  transform-origin: left center;
  transition: transform var(--t-set, 240ms) linear calc(var(--i, 0) * var(--t-set, 240ms) + 150ms);
}
.w-detail + .w-detail::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--pen-1, 1px); background: var(--line-2);
  transform-origin: center top;
  transition: transform var(--t-rule, 700ms) var(--ease-pen, cubic-bezier(.65, 0, .35, 1)) calc(var(--i, 0) * 120ms + 500ms);
}
html.ink .w-details[data-ink]:not(.is-inked) .w-detail-fig::after { transform: scaleX(0); }
html.ink .w-details[data-ink]:not(.is-inked) .w-detail + .w-detail::before { transform: scaleY(0); }
@media (prefers-reduced-motion: reduce) { .w-detail-fig::after, .w-detail::before { transition: none !important; } }

.mock { width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; }
.mock-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }

.week { display: grid; grid-template-columns: 38px repeat(5, minmax(0, 1fr)); font-size: 0.75rem; background-image: linear-gradient(var(--grid-strong) 1px, transparent 1px); background-size: 100% 40px; background-position: 0 28px; }
.week > div { position: relative; min-height: 40px; border-left: 1px solid var(--line); padding: 3px; }
.week .wk-day { min-height: 28px; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); text-align: center; padding-top: 6px; background: var(--sheet); border-bottom: 1px solid var(--line-2); }
.week .wk-t { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-3); border-left: 0; text-align: right; padding: 4px 6px 0 0; }
.wk-ev { display: block; height: 100%; border-radius: 4px; padding: 3px 5px; background: var(--sheet); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 0.6875rem; line-height: 1.2; overflow: hidden; }
.wk-ev.is-new { height: auto; min-height: 100%; background: var(--ink); border-color: var(--ink); color: var(--sheet); font-weight: 600; }
.mock-foot { padding: 10px 14px; border-top: 1px solid var(--line-2); font-size: 0.8125rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.mock-foot .ico { width: 16px; height: 16px; color: var(--ok); }

.chat { display: grid; gap: 8px; padding: 14px; background: var(--sheet); }
.bub { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 0.875rem; line-height: 1.35; }
.bub--in { justify-self: start; background: var(--paper-2); border-bottom-left-radius: 3px; }
.bub--out { justify-self: end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 3px; }
.bub small { display: block; margin-top: 3px; font-size: 0.6875rem; opacity: .7; }
.chat-langs { display: flex; gap: 6px; }
.chat-langs span { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px; }

.ask .chat { padding-bottom: 16px; }
.ask-btn { justify-self: start; margin-top: 2px; padding: 7px 12px; border-radius: 8px; border: 0; background: var(--ink); font-size: 0.8125rem; font-weight: 600; color: var(--sheet); }
.ask-when { font-size: 0.75rem; text-align: center; color: var(--ink-3); }

/* ─── Process ──────────────────────────────────────────────── */
.w-steps { list-style: none; display: grid; grid-template-columns: 1.15fr 0.7fr 1.15fr 0.8fr; gap: 0 28px; counter-reset: s; }
.w-steps > li { display: grid; gap: 12px; align-content: start; }
.w-steps .dim, .w-steps .label { order: -1; margin-bottom: 4px; }
.w-steps h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.w-steps p { color: var(--ink-2); font-size: 0.9375rem; }
.w-steps .tag { color: var(--ok); border-color: var(--ok); background: var(--ok-wash); font-weight: 600; }
.w-steps-cta { margin-top: clamp(32px, 4vw, 52px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ─── FAQ + final ──────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr); gap: 32px 64px; align-items: start; }
.faq-grid > h2 { position: sticky; top: 100px; }

/* ─── Responsive ───────────────────────────────────────────── */
@media all {
  .w-board .shot:not(.shot--main) .tag--concept { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 1080px) {
  .w-hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1020px) {
  /* one detail per row: drawing on the left, its words on the right */
  .w-details { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .w-detail { grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .w-detail-fig { align-self: stretch; align-content: center; }
  .w-detail-fig::after { left: auto; top: 0; width: var(--pen-1, 1px); height: auto; }
  .w-detail + .w-detail::before { right: 0; bottom: auto; width: auto; height: var(--pen-1, 1px); }
  html.ink .w-details[data-ink]:not(.is-inked) .w-detail-fig::after { transform: scaleY(0); }
  html.ink .w-details[data-ink]:not(.is-inked) .w-detail + .w-detail::before { transform: scaleX(0); }
}
@media (max-width: 960px) {
  .w-steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
}
@media (max-width: 680px) {
  .w-detail { grid-template-columns: minmax(0, 1fr); }
  .w-detail-fig { padding: 18px 14px 20px; }
  .w-detail-fig::after { left: 0; top: auto; width: auto; height: var(--pen-1, 1px); }
  .w-detail-copy { padding: 18px 16px 22px; }
  html.ink .w-details[data-ink]:not(.is-inked) .w-detail-fig::after { transform: scaleX(0); }
}
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid > h2 { position: static; }
}
@media (max-width: 720px) {
  .old { padding-top: 10cqw; }
  .new-hero .shot-copy { padding: 4cqw; }
  .cta-band-mail a, .w-steps-cta a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
  .oldnew { aspect-ratio: 4 / 3.6; }
  .new-nav { display: none; }
  .new-bar { font-size: 2.6cqw; padding-top: 10cqw; } .new-logo { font-size: 3.6cqw; } .new-lang { font-size: 2.3cqw; } .new-book { font-size: 2.5cqw; padding: 1.2cqw 3cqw; }
  .new-hero .shot-copy { width: 50%; gap: 2.2cqw; }
  .new-hero .shot-copy b { font-size: 5.4cqw; } .new-hero .shot-btn { font-size: 2.8cqw; padding: 1.8cqw 4cqw; }
  .new-strip { font-size: 2.3cqw; gap: 3cqw; }
  .old-nav { font-size: 2.4cqw; } .old-title { font-size: 4.6cqw; } .old-text { font-size: 2.7cqw; max-width: 90%; } .old-img { height: 14cqw; font-size: 2.2cqw; } .old-marquee { font-size: 2.5cqw; }
  .w-board { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-board .shot:not(.shot--main) .shot-pic { aspect-ratio: 16 / 10; }
  .w-board .shot figcaption { flex-wrap: wrap; font-size: 0.8125rem; }
  .shot-copy { width: 70%; }
  .shot-copy b { font-size: 6cqw; } .shot-btn { font-size: 2.6cqw; } .shot-note { font-size: 2.3cqw; }
}
@media (max-width: 520px) {
  .w-hero-actions .btn, .w-steps-cta .btn, #start .btn { max-width: 100%; white-space: normal; text-align: left; justify-content: center; }
  #start .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band-actions { min-width: 0; max-width: 100%; }
  .w-steps { grid-template-columns: 1fr; }
  .w-board .shot:not(.shot--main) .tag { height: 22px; padding: 0 6px; font-size: 0.6875rem; letter-spacing: 0.02em; }
}
.w-board-note { grid-column: 1 / -1; margin-top: 4px; font-size: 0.8125rem; color: var(--ink-3); }
