/* Less (experiment variant): editorial argument. Left-aligned thesis, a before/after of logging one set,
   then the short list of what's in the app. Scoped to html.v-less so it can share a document with studio.css. */
@keyframes less-blink { 50% { opacity: 0 } }

.v-less {
  --bg: #ffffff; --tint: #f5f4f7; --fg: #111014; --muted: #6b6873; --line: #e6e4ea;
  --accent: #9747E6; --ok: #2fa95a;
  --display: "Hanken Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;

  @media (prefers-color-scheme: dark) {
    --bg: #0b0a0d; --tint: #16151a; --fg: #f3f2f5; --muted: #9c99a5; --line: #26242b;
    color-scheme: dark;
  }

  & *, & *::before, & *::after { box-sizing: border-box }
  & body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--display); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased }
  .wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px }
  & h1, & h2, & h3 { margin: 0; text-wrap: balance; letter-spacing: -.035em; line-height: 1 }
  & p { margin: 0 }
  & :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px }
  .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
  .h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-top: 12px }

  .top { display: flex; align-items: center; gap: 12px; padding-block: 22px }
  .top .name { font-weight: 600; letter-spacing: -.01em; margin-right: auto }
  .top a { color: var(--muted); text-decoration: none; font-size: 15px }
  .top a:hover { color: var(--fg) }
  .top nav { display: flex; gap: 22px }
  .app-icon { width: 34px; height: 34px; border-radius: 9px }

  .hero { padding-block: 72px 96px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: end }
  .hero h1 { font-size: clamp(52px, 8.6vw, 124px); font-weight: 800 }
  .hero h1 span { color: var(--accent) }
  .hero .side { display: flex; flex-direction: column; gap: 24px; min-width: 0 }
  .hero .side p { font-size: 20px; color: var(--muted); max-width: 32ch }
  .store { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: var(--fg); color: var(--bg); border-radius: 12px; padding: 10px 20px 10px 16px; text-decoration: none; line-height: 1.1 }
  .store svg { width: 22px; height: 22px; fill: currentColor }
  .store small { display: block; font-size: 11px }
  .store b { font-size: 19px; font-weight: 600 }

  .compare { background: var(--tint); padding-block: 96px }
  .compare h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; max-width: 18ch; margin-top: 12px }
  .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px }
  .panel { background: var(--bg); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px; min-width: 0 }
  .panel header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px }
  .panel h3 { font-size: 22px; letter-spacing: -.02em }
  .form { display: grid; gap: 10px }
  .field { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; font-size: 15px; color: var(--muted) }
  .field div { height: 40px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; padding: 0 12px; color: var(--fg); font-family: var(--mono); font-size: 14px }
  .field div.caret::after { content: ""; width: 1.5px; height: 18px; background: var(--accent); margin-left: 2px; animation: less-blink 1s steps(1) infinite }
  .keys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; opacity: .55 }
  .keys i { height: 26px; border-radius: 5px; background: var(--line) }
  .fake-btn { height: 44px; border-radius: 12px; background: var(--line); display: grid; place-items: center; font-size: 15px; color: var(--muted) }
  .one { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding-block: 24px }
  .one .ex { text-align: center }
  .one .ex b { display: block; font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums }
  .circles { display: flex; gap: 10px }
  .c { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: var(--muted); font: 600 19px var(--display); cursor: pointer; font-variant-numeric: tabular-nums; transition: background .2s, border-color .2s, transform .12s }
  .c.next { border-color: var(--accent); border-width: 3px; color: var(--accent) }
  .c.ok { background: var(--ok); border-color: var(--ok); color: #fff }
  .c.short { background: #f08a24; border-color: #f08a24; color: #fff }
  .c.zero { background: #e5483d; border-color: #e5483d; color: #fff }
  .c:active { transform: scale(.9) }
  .count { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: center }
  .count b { color: var(--accent); font-weight: 500 }

  & section { padding-block: 104px }
  & section.tight { padding-top: 0 }
  .cols { display: grid; grid-template-columns: 320px 1fr; gap: 64px }
  .item { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); min-width: 0 }
  .item:last-child { border-bottom: 1px solid var(--line) }
  .item dt { font-weight: 600 }
  .item dd { margin: 0; color: var(--muted) }
  & dl { margin: 0 }
  & kbd { font-family: var(--mono); font-size: 13px; background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--fg) }

  .cut { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 8px }
  .cut span { font-size: 17px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px }
  #pricing .store { margin-top: 28px }
  .after-cut { color: var(--muted); margin-top: 28px; max-width: 52ch }
  .themes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px }
  .sw { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px transparent; transition: box-shadow .2s }
  .sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--fg) }

  .faq details { border-top: 1px solid var(--line); padding-block: 20px }
  .faq details:last-child { border-bottom: 1px solid var(--line) }
  .faq summary { cursor: pointer; font-weight: 600; font-size: 20px; list-style: none }
  .faq summary::-webkit-details-marker { display: none }
  .faq details p { color: var(--muted); margin-top: 10px; max-width: 62ch }

  .legal { background: var(--tint); padding-block: 80px }
  .legal p, .legal li { color: var(--muted); font-size: 16px; max-width: 62ch }
  .legal h3 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 14px }
  .legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0 }
  .legal b { color: var(--fg); font-weight: 600 }
  .legal a { color: var(--fg) }
  .legal .block + .block { margin-top: 48px }
  .legal .block p + p { margin-top: 8px }
  .mail { display: inline-flex; margin-block: 12px 10px; font-family: var(--mono); font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer }
  & footer { padding-block: 28px; font-size: 13px; color: var(--muted) }
  & footer .wrap { display: flex; gap: 20px; flex-wrap: wrap }
  & footer a { color: var(--muted) }

  @media (max-width: 860px) {
    .hero, .vs, .cols { grid-template-columns: 1fr }
    .item { grid-template-columns: 1fr; gap: 4px }
    .top nav { display: none }
    & section, .compare { padding-block: 72px }
    & section.tight { padding-top: 0 }
    .c { width: 46px; height: 46px }
    .panel { padding: 24px }
  }
  @media (max-width: 400px) {
    .circles { gap: 6px }
    .c { width: 42px; height: 42px; font-size: 17px }
  }
}
