/* Yellow means one thing on this page: it waits for your yes. Everything done is black. */
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/schibsted-grotesk.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --ink: #000;
  --ink-2: #50555c;
  --line: #d9dcdf;
  --ground: #f1f3f4;
  --yes: #ffc800;
  --pad: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 12vw, 160px);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 400 18px/1.5 'Schibsted Grotesk', system-ui, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #0a58ff; outline-offset: 2px; }
.wrap { max-width: 1344px; margin-inline: auto; padding-inline: var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 16px; top: -60px; background: #fff; padding: 12px 16px; z-index: 2; }
.skip:focus { top: 8px; }

::selection { background: var(--yes); color: #000; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.1vw, 104px); line-height: .98; letter-spacing: -.04em; }
.h-big { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; max-width: 18ch; }
h3 { font-size: clamp(23px, 2.1vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); max-width: 62ch; text-wrap: pretty; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: #33373c; }
.btn:active { transform: translateY(1px); }
.btn.yes { background: var(--yes); color: #000; }
.btn.yes:hover { background: #f0b800; }
.btn.yes[aria-disabled] { background: none; padding-inline: 0; cursor: default; transform: none; }

.top { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { font-size: 24px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; margin-right: auto; }
.top nav { display: flex; gap: 28px; font-size: 16px; }
.top nav a { text-decoration: none; padding-block: 12px; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { padding-top: clamp(24px, 3vw, 44px); }
.intro { margin-top: 24px; display: flex; justify-content: space-between; align-items: end; gap: 16px 64px; }
.intro .lead { max-width: 68ch; }
.try { max-width: 26ch; font-weight: 600; text-wrap: balance; }

/* The demo */
.demo { margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: minmax(300px, 4fr) 8fr; border: 1px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; }
.chats { border-right: 1px solid var(--ink); background: var(--ground); padding: 20px; }
.chats h2, .month-head h2 { font-size: 22px; line-height: 1.4; letter-spacing: -.02em; }
.chat { margin-top: 16px; font-size: 16px; line-height: 1.4; }
.chat b, .bubble b, .proposal b { display: block; font-weight: 600; }
.bubble { background: #fff; border-radius: 12px; padding: 12px 16px; text-wrap: pretty; }
.chat .read { text-wrap: balance; margin-top: 8px; padding-left: 16px; font-size: 15px; }
.chat .btn { margin: 12px 0 8px 16px; }
.chat .ok { font-weight: 600; margin-top: 8px; padding-left: 16px; font-size: 15px; }
.chat.wait { color: var(--ink-2); }
.month { padding: 20px; min-width: 0; }
.month-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 20px; min-height: 34px; }
.month-head p { font-size: 16px; }
.link { background: none; border: 0; padding: 10px 0 10px 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 10px; min-height: 420px; }
.dow { font-size: 14px; color: var(--ink-2); padding: 4px 8px; }
.day { border-top: 1px solid var(--line); min-height: 78px; padding: 5px 4px 6px; font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
.day .n { padding-left: 4px; color: var(--ink-2); line-height: 1.3; }
.day.shut { background: var(--ground); }
.ses { border-radius: 4px; padding: 2px 6px; line-height: 1.35; background: var(--yes); color: #000; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: background .25s, color .25s; transition-delay: calc(var(--i) * 35ms); animation: put .3s cubic-bezier(.2, .8, .3, 1) backwards; animation-delay: calc(var(--i) * 45ms + var(--wait, 0ms)); }
.ses.set { background: var(--ink); color: #fff; }
@keyframes put { from { opacity: 0; transform: scale(.85); } }

/* The month */
#mes { padding-top: var(--section); }
.done { display: grid; grid-template-columns: 5fr 7fr; gap: 24px clamp(32px, 7vw, 112px); align-items: center; padding-top: clamp(48px, 5vw, 72px); }
.done p, .live p, .pair article > p { margin-top: 16px; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.piece { background: var(--ground); border-radius: 10px; padding: clamp(16px, 2.4vw, 32px); min-width: 0; }
.thread { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.piece .bubble { margin: 0; color: var(--ink); max-width: 38ch; }
.piece .bubble.out { background: #d8f5cf; align-self: flex-end; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: right; padding: 10px 0 10px 8px; border-top: 1px solid var(--line); font-weight: 400; }
thead th { color: var(--ink-2); font-size: 15px; border: 0; padding-block: 4px; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
tbody td:last-child, tfoot > tr > * { font-weight: 600; }
tfoot > tr > * { border-top: 1px solid var(--ink); }
input[type=checkbox] { appearance: none; width: 44px; height: 44px; border-radius: 6px; background: var(--yes); vertical-align: middle; cursor: pointer; display: inline-grid; place-items: center; }
input[type=checkbox]:checked { background: var(--ink); }
input[type=checkbox]:checked::after { content: ''; width: 10px; height: 19px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-2px) rotate(45deg); }
.live { margin-top: clamp(72px, 8vw, 120px); }
.live-text { display: grid; grid-template-columns: 5fr 7fr; gap: 0 clamp(32px, 7vw, 112px); }
.live-text p { margin-top: 0; }
.ipad { margin-top: 32px; border: 16px solid #000; border-radius: 28px; padding: clamp(16px, 2.4vw, 32px); }
.ipad-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ipad p { margin: 0; color: var(--ink); }
.ipad b { font-weight: 600; }
.duo { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(24px, 5vw, 80px); }
.duo h4 { font-size: 24px; line-height: 1.3; }
.duo ol { list-style: none; padding: 0; margin-top: 12px; }
.duo li { display: grid; grid-template-columns: 1fr 1fr 44px; align-items: center; min-height: 68px; border-top: 1px solid var(--line); font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.02em; }
.pair { margin-top: clamp(72px, 8vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: 64px clamp(32px, 5vw, 80px); }
.pair article { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
.pair .piece { margin-top: 32px; }
.rest { padding-top: clamp(72px, 8vw, 120px); font-size: clamp(20px, 2vw, 28px); line-height: 1.4; letter-spacing: -.01em; max-width: 60ch; text-wrap: pretty; }

.wa { padding-block: var(--section); display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(32px, 7vw, 112px); align-items: center; }
.wa > div > p { margin-top: 20px; max-width: 54ch; text-wrap: pretty; }
.proposal { align-self: stretch; background: #fff; border: 1px solid var(--ink); border-radius: 10px; padding: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

.ask { background: #000; color: #fff; padding-block: var(--section); }
.ask .lead, .close .lead { margin-top: 24px; }
.ask dl { margin-top: clamp(40px, 5vw, 72px); }
.ask dl > div { display: grid; grid-template-columns: 7fr 5fr; gap: 8px clamp(32px, 5vw, 80px); padding-block: 24px; border-top: 1px solid #4a4e54; align-items: baseline; }
.ask dt { font-size: clamp(21px, 2.1vw, 30px); line-height: 1.3; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.ask dd { color: #c9cdd2; }
.close { background: var(--yes); padding-block: var(--section); }
.close .btn { margin-top: 32px; min-height: 52px; padding-inline: 24px; font-size: 18px; }
.foot { display: flex; justify-content: space-between; align-items: center; min-height: 88px; font-size: 16px; }
.foot span { font-weight: 800; letter-spacing: -.03em; }
.foot a { padding-block: 12px; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .demo, .done, .wa, .ask dl > div, .live-text, .pair { grid-template-columns: minmax(0, 1fr); }
  .chats { border-right: 0; border-bottom: 1px solid var(--ink); }
  .intro { flex-direction: column; align-items: start; }
  .live-text p { margin-top: 16px; }
  .chat:not(.now) { display: none; }
  .month { padding: 16px 10px; }
  .month-head { padding-inline: 6px; }
}
@media (max-width: 560px) {
  .day { font-size: 12px; min-height: 84px; padding-inline: 2px; }
  .ses { white-space: normal; padding: 2px 4px; line-height: 1.2; }
  .dow { padding-inline: 4px; }
  table { font-size: 16px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .ipad { border-width: 10px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::after { animation: none !important; transition: none !important; }
}
