/* Type Now: its own look. A page about a keyboard, set on the pale lilac of the app, with
   one indigo for things you can press and the red squiggle of a spelling mistake as the
   only ornament. The Bitmesh bar on top comes from /assets/css/appnav.css. */
:root {
  --ground: #f3f1fb;
  --ground-2: #e9e6f6;
  --card: #ffffff;
  --ink: #16132b;
  --ink-2: #55516f;
  --line: #d9d5ec;
  --indigo: #4a43f0;
  --indigo-ink: #322bc4;
  --squiggle: #e5484d;
  --tray: #d3d6e0;          /* the keyboard tray */
  --night: #14112a;
  --night-ink: #efedfb;
  --night-2: #a7a2c8;

  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
  --gut: clamp(20px, 4.5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2 { font-weight: 700; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.lede { color: var(--ink-2); font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 34rem; }
.typo { text-decoration: underline wavy var(--squiggle); text-decoration-thickness: .06em; text-underline-offset: .14em; text-decoration-skip-ink: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn--main { background: var(--indigo); color: #fff; box-shadow: 0 2px 0 var(--indigo-ink); }
.btn--main:hover { background: var(--indigo-ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

section { padding-block: clamp(72px, 9vw, 128px); }

/* ------------------------------------------------------------------ hero -- */
.hero { padding-block: clamp(48px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.2rem); }
.hero .lede { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 34px; }
.hero__fine { color: var(--ink-2); font: 400 13px/1.5 var(--mono); }

/* The working example: a message field, the Type Now toolbar and its result panel. */
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(40, 30, 120, .45); }
.demo__thread { padding: 22px 20px 6px; display: grid; gap: 8px; }
.bubble { max-width: 78%; padding: 9px 14px; border-radius: 18px; background: var(--ground-2); font-size: 15px; line-height: 1.4; justify-self: start; }
.demo__who { justify-self: center; color: var(--ink-2); font: 400 12px/1 var(--mono); padding-bottom: 6px; }
.demo__field { margin: 12px 16px 16px; display: flex; align-items: flex-end; gap: 10px; padding: 12px 12px 12px 16px; border: 1px solid var(--line); border-radius: 20px; min-height: 76px; }
.demo__text { flex: 1; font-size: 17px; line-height: 1.45; transition: opacity .2s; }
.demo__text.is-swap { opacity: 0; }
.demo__send { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #1589ff; display: grid; place-items: center; }
.demo__send svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.demo__kb { background: var(--tray); padding: 12px 12px 16px; }
.demo__bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.demo__bar::-webkit-scrollbar { display: none; }
.pill { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; cursor: pointer; font-size: 15px; font-weight: 500; white-space: nowrap; box-shadow: 0 1px 0 rgba(22, 19, 43, .22); transition: background-color .15s, color .15s; }
.pill:hover { background: #f1f0ff; }
.pill[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.demo__panel { background: #fff; border-radius: 14px; padding: 14px 16px; min-height: 158px; display: flex; flex-direction: column; }
.demo__label { color: var(--ink-2); font-size: 13px; }
.demo__result { margin-top: 4px; font-size: 16.5px; line-height: 1.45; flex: 1; transition: opacity .2s; }
.demo__result.is-swap { opacity: 0; }
.demo__opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { min-height: 34px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; font-weight: 500; }
.chip[aria-pressed="true"] { border-color: var(--indigo); color: var(--indigo); }
.demo__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.demo__reset { border: 0; background: none; padding: 8px 0; cursor: pointer; color: var(--ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.demo__apply { min-height: 42px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--indigo); color: #fff; cursor: pointer; font-weight: 600; font-size: 15px; transition: background-color .2s, transform .15s; }
.demo__apply:hover { background: var(--indigo-ink); }
.demo__apply:active { transform: scale(.96); }
.demo__apply[disabled] { background: #dcd9ee; color: var(--ink-2); cursor: default; }
.demo__note { margin-top: 14px; color: var(--ink-2); font: 400 12.5px/1.5 var(--mono); text-align: center; }

/* the "What is Type Now?" opening: sits on the hero's ground, so it borrows the hero's bottom space */
.about { padding-block: 0 clamp(64px, 8vw, 112px); }
.about .lede { margin-top: 18px; max-width: 44rem; }

/* ------------------------------------------------------------- the keys -- */
.keys { background: var(--ground-2); }
.keys__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 88px); align-items: end; }
.keyrow { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.key { background: #fff; border-radius: 14px; padding: 20px 20px 22px; box-shadow: 0 3px 0 #bdb8d8; }
.key h3 { font-size: 1.08rem; }
.key p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.key--wide { grid-column: span 2; background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000; }
.key--wide p { color: #c9c5e6; }
.shots3 { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.shot img { width: 100%; }
.shot figcaption { padding: 14px 16px 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; border-top: 1px solid var(--line); }
.shot figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ the tools -- */
.tools__head { max-width: 44rem; }
.tools__head .lede { margin-top: 18px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 8vw, 112px); }
.feature--flip .feature__art { order: 2; }
.feature__art { display: flex; justify-content: center; gap: 16px; align-items: flex-start; }
.screen { width: min(100%, 272px); border-radius: 30px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 50px -30px rgba(40, 30, 120, .5); }
.feature__art .screen:nth-child(2) { margin-top: 48px; }
.feature h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.feature p { margin-top: 16px; color: var(--ink-2); max-width: 31rem; }
.ticks { margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo); transform: rotate(-45deg); }
.more { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.more li { padding: 26px 24px 4px 0; }
.more li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.more p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ------------------------------------------------------------- privacy -- */
.trust { background: var(--night); color: var(--night-ink); }
.trust__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.trust .lede { color: var(--night-2); margin-top: 20px; }
.trust__list { display: grid; gap: 0; }
.trust__list li { padding: 22px 0; border-top: 1px solid rgba(239, 237, 251, .14); }
.trust__list li:last-child { border-bottom: 1px solid rgba(239, 237, 251, .14); }
.trust__list p { margin-top: 6px; color: var(--night-2); font-size: 16px; }
.trust a { color: #fff; text-underline-offset: 3px; }

/* ------------------------------------------------------------- pricing -- */
.plans { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3vw, 36px); }
.plan--pro { border-color: var(--ink); }
.plan__price { margin-top: 10px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.plan__price span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.plan .ticks { margin-top: 24px; }
.pricing__fine { margin-top: 20px; color: var(--ink-2); font-size: 14.5px; max-width: 46rem; }

/* ----------------------------------------------------------------- faq -- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > :not(summary) { padding: 0 0 22px; color: var(--ink-2); max-width: 40rem; }
.faq ol { list-style: decimal; padding-left: 22px !important; display: grid; gap: 6px; }

/* ----------------------------------------------------------------- end -- */
.end { text-align: center; padding-bottom: clamp(56px, 7vw, 96px); }
.end img { margin: 0 auto 28px; width: 84px; height: 84px; border-radius: 20px; }
.end h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.end .hero__cta { justify-content: center; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14.5px; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.foot a:hover { color: var(--indigo); }

/* --------------------------------------------------------------- legal -- */
.legal { padding-block: clamp(48px, 6vw, 88px) clamp(72px, 9vw, 120px); }
.legal__col { max-width: 46rem; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.legal .updated { margin-top: 14px; color: var(--ink-2); font: 400 13px/1.5 var(--mono); }
.legal h2 { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.2; }
.legal h3 { margin-top: 28px; font-size: 1.1rem; }
.legal p, .legal ul { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--indigo-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .note-title { font-weight: 600; margin-top: 24px; }

/* reveal: content is visible without script; the script only adds the lift */
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-rise].is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero__grid, .keys__head, .feature, .trust__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .feature__art, .feature--flip .feature__art { order: 2; }   /* words first on one column */
  .keyrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .more li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .demo { max-width: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .shots3, .plans { grid-template-columns: minmax(0, 1fr); }
  .keyrow { grid-template-columns: minmax(0, 1fr); }
  .key--wide { grid-column: auto; }
  .more { grid-template-columns: minmax(0, 1fr); }
  .more li, .more li + li { padding: 20px 0 4px; border-left: 0; }
  .more li + li { border-top: 1px solid var(--line); }
  .feature__art .screen { width: min(48%, 220px); border-radius: 22px; }
  .feature__art .screen:only-child { width: min(70%, 260px); }
  .foot nav { margin-left: 0; }
  .btn { width: 100%; }
  .hero__cta { align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}
