/* Sunday's landing: a Sunday sky, the sun that talks, and the two lines with the week's work pegged on them. */
.landing { background: var(--air); overflow-x: hidden; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; background: var(--sky); overflow: hidden; display: flex; flex-direction: column; padding-bottom: 54px; }
.nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; width: min(1240px, 100% - 32px); margin: 0 auto; padding: 20px 0; }

.sunball { position: absolute; z-index: 1; top: -90px; right: max(-70px, calc(50% - 700px)); width: 360px; height: 360px; }
.sunball .disc { width: 100%; height: 100%; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 20px #bde4f7, 0 0 0 46px #b3dff5; }
.bubble { position: absolute; z-index: 4; top: 292px; right: max(110px, calc(50% - 600px)); max-width: 300px; padding: 14px 18px; background: var(--paper); border-radius: 20px 4px 20px 20px; box-shadow: 0 10px 24px -12px rgba(27, 42, 74, 0.5); font-size: 16.5px; line-height: 1.35; font-weight: 500; transform-origin: 100% 100%; transition: transform 0.35s var(--ease-spring), opacity 0.25s; }
.bubble.swap { transform: scale(0.86); opacity: 0; }
.bubble::after { content: ''; position: absolute; right: 0; top: -12px; width: 22px; height: 14px; background: var(--paper); clip-path: polygon(100% 0, 0 100%, 100% 100%); }

.hero-copy { position: relative; z-index: 3; width: min(1240px, 100% - 32px); margin: 0 auto; padding: 18px 0 0; }
.hero h1 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 850; letter-spacing: -0.045em; line-height: 0.95; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 40px; margin-top: 22px; }
.lead { max-width: 36ch; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; color: var(--ink); font-weight: 450; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* the yard: two lines between two poles */
.yard { position: relative; z-index: 2; margin-top: clamp(40px, 6vh, 64px); padding: 0 clamp(16px, 4vw, 60px); flex: 1; display: flex; flex-direction: column; gap: 18px; min-height: 330px; }
.pole { position: absolute; top: -18px; bottom: -60px; width: 14px; border-radius: 6px 6px 0 0; background: #a37c4f; box-shadow: inset -4px 0 0 #7e5c35; }
.pole.left { left: clamp(8px, 2.5vw, 40px); }
.pole.right { right: clamp(8px, 2.5vw, 40px); }
.hline { position: relative; height: 150px; margin: 0 clamp(12px, 2.6vw, 34px); }
.hline .rope { top: 0; }
.hline .sign { position: absolute; z-index: 3; left: -6px; top: -34px; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); background: var(--paper); padding: 2px 10px; border-radius: 8px; box-shadow: 0 2px 0 rgba(27, 42, 74, 0.15); transform: rotate(-3deg); }
.hline.done .sign { background: var(--grass); color: #fff; }
.pegs { position: absolute; inset: 0; }

/* a card on a line (the demo's) */
.card { position: absolute; top: 4px; width: 200px; padding: 18px 14px 12px; display: flex; flex-direction: column; gap: 10px; transition: left 0.7s var(--ease-spring); }
.card .t { font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.card .n { color: var(--ink-3); font-weight: 600; }
.card .row { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.card.dn .t { color: var(--ink-2); }
.card .chk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grass); color: #fff; }
.card .chk svg { width: 13px; height: 13px; }
.card.lit { animation: lit 1.2s ease; }
@keyframes lit { 0%, 100% { box-shadow: var(--shadow-hang); } 30%, 70% { box-shadow: 0 0 0 4px var(--sun), var(--shadow-hang); } }
.card.sway { animation: sway 5.5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: -1.4deg; } 50% { rotate: 1.4deg; } }

.composer { position: relative; z-index: 4; display: flex; align-items: center; gap: 4px; width: min(660px, 100% - 32px); margin: 8px auto 0; min-height: 60px; padding: 8px 8px 8px 22px; background: var(--paper); border-radius: 999px; box-shadow: 0 14px 30px -14px rgba(27, 42, 74, 0.55); font-size: 17px; font-weight: 500; }
.composer .typed { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .typed:empty::before { content: 'Tell Sunday what happened…'; color: var(--ink-3); }
.composer .caret { width: 2px; height: 22px; background: var(--ink); animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.composer .send { margin-left: auto; width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); transition: transform 0.2s var(--ease-spring); }
.composer .send svg { width: 22px; height: 22px; }
.composer.sent .send { transform: scale(0.82); }

.grass { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 64px; background: #5cc27b; box-shadow: inset 0 6px 0 #4cb06b; }
.hero .grass { z-index: 1; }

/* ---------- the office: nine columns fall, two lines stay ---------- */
.office { position: relative; height: 290vh; background: #e4e8ee; }
.stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.office-copy { position: relative; width: min(1160px, 100% - 32px); margin: 0 auto; padding-top: clamp(36px, 8vh, 86px); min-height: clamp(220px, 32vh, 300px); }
.cap { position: absolute; max-width: 24ch; font-size: clamp(28px, 3.9vw, 52px); letter-spacing: -0.035em; line-height: 1; transition: opacity 0.4s, transform 0.5s var(--ease-spring); }
.cap.b { opacity: 0; transform: translateY(20px); }
.office.calmed .cap.a { opacity: 0; transform: translateY(-20px); }
.office.calmed .cap.b { opacity: 1; transform: none; }

.messy { position: relative; left: 50%; width: 1152px; margin: 30px 0 0; transform-origin: top center; display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; align-content: start; }
.col { background: #d2d8e1; border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 340px; will-change: transform, opacity; transform-origin: 50% 100%; }
.col h4 { font-size: 12.5px; font-weight: 700; letter-spacing: 0; color: #4f5b6e; display: flex; justify-content: space-between; padding: 2px 2px 4px; }
.col h4 b { background: #b9c1cd; color: #3c4658; font-size: 11px; padding: 0 6px; border-radius: 4px; }
.jcard { background: #f6f7f9; border-radius: 4px; padding: 7px; font-size: 12px; line-height: 1.25; color: #2d3646; box-shadow: 0 1px 0 #b7bfcb; }
.jcard .chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.jcard .chips span { font-size: 10px; padding: 1px 5px; border-radius: 3px; background: #dfe3ea; color: #5b667a; }
.jcard .chips span.r { background: #f9d9d6; color: #a1372b; }
.jcard .chips span.y { background: #f6ebc4; color: #7a5d0b; }

.calm { position: absolute; left: 0; right: 0; bottom: 8vh; width: min(1160px, 100% - 32px); margin: 0 auto; display: grid; gap: 34px; pointer-events: none; }
.cline { position: relative; height: 128px; }
.cline .rope { clip-path: inset(0 100% 0 0); }
.cline .cards { position: absolute; inset: 0; display: flex; gap: 14px; justify-content: center; padding-top: 10px; }
.cline .card { position: relative; top: auto; width: 190px; opacity: 0; }

/* ---------- talk ---------- */
.talk { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; padding: clamp(80px, 12vw, 150px) 0; }
.talk h2, .claude h2, .price h2 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.04em; line-height: 0.98; max-width: 14ch; }
.talk-copy p, .claude-copy p { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }

.chatcard { background: var(--paper); border-radius: 26px; padding: 18px 18px 22px; box-shadow: 0 30px 60px -30px rgba(27, 42, 74, 0.45); display: flex; flex-direction: column; gap: 10px; }
.chathead { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; border-bottom: 2px solid var(--air); font-size: 17px; }
.mini-sun { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); box-shadow: inset 0 -7px 0 -4px var(--ink); }
.msg { max-width: 88%; font-size: 15.5px; line-height: 1.42; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; padding: 10px 15px; border-radius: 18px 18px 4px 18px; }
.msg.it { align-self: flex-start; padding: 2px 4px; }
.receipts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.receipts li { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 12px; background: var(--air); font-weight: 600; font-size: 14.5px; }
.receipts li span { flex: 1; min-width: 0; }
.ico { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); position: relative; }
.ico::before, .ico::after { content: ''; position: absolute; background: #fff; border-radius: 2px; }
.ico.add::before { width: 10px; height: 2.5px; } .ico.add::after { width: 2.5px; height: 10px; }
.ico.done { background: var(--grass); }
.ico.done::before { width: 8px; height: 4.5px; background: none; border: solid #fff; border-width: 0 0 2.5px 2.5px; border-radius: 0; transform: translateY(-1px) rotate(-45deg); }
.ico.done::after { display: none; }
.ico.edit { background: var(--sun-deep); }
.ico.edit::before { width: 10px; height: 2.5px; transform: rotate(-45deg); } .ico.edit::after { display: none; }

/* ---------- Claude ---------- */
.claude { background: var(--ink); color: #fff; padding: clamp(80px, 11vw, 140px) 0; }
.claude-in { display: grid; grid-template-columns: 1fr 1.15fr; grid-template-areas: 'copy term' 'mini term'; gap: 34px clamp(28px, 5vw, 70px); align-items: start; }
.claude-copy { grid-area: copy; }
.claude-copy p { color: #c8d3e6; }
.term { grid-area: term; background: #0f1a30; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 2px #2c3d61; }
.term-bar { display: flex; gap: 7px; padding: 13px 16px; background: #16233f; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2f4166; }
.term pre { margin: 0; padding: 18px 20px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; color: #dbe6fb; white-space: pre-wrap; word-break: break-word; }
.term .p { color: var(--sun); } .term .ok { color: #7ee2a8; } .term .dim { color: #6c7fa3; } .term .tool { color: #9fc3ff; }
.minibord { grid-area: mini; display: grid; gap: 22px; padding-top: 10px; }
.mline { position: relative; padding-top: 16px; min-height: 110px; }
.mline > span { position: absolute; left: 0; top: -14px; font-weight: 800; font-size: 14px; color: var(--sun); }
.mline:last-child > span { color: #7ee2a8; }
.mrope { position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 3px; background: #b08a5d; }
.mcards { position: relative; display: flex; gap: 12px; }
.mcard { color: var(--ink); width: 168px; padding: 16px 12px 10px; font-size: 14px; font-weight: 700; line-height: 1.2; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mcard.dn { color: var(--ink-2); }

/* ---------- price ---------- */
.price { padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); text-align: center; }
.price h2 { margin: 0 auto; }
.price-line { position: relative; display: flex; justify-content: center; gap: clamp(18px, 4vw, 56px); margin-top: 70px; padding-top: 30px; }
.price-line .rope { top: 0; }
.pcard { width: min(340px, 44vw); padding: 34px 26px 28px; text-align: left; rotate: -1.2deg; }
.pcard.team { rotate: 1.4deg; margin-top: 18px; }
.pcard h3 { font-size: 20px; letter-spacing: -0.02em; }
.pcard .amt { font-size: 64px; font-weight: 850; letter-spacing: -0.05em; line-height: 1; margin: 16px 0 14px; }
.pcard .amt small { font-size: 20px; letter-spacing: -0.01em; font-weight: 700; color: var(--ink-2); }
.pcard p:last-child { color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.pcard.team { background: var(--sun); }
.pcard.team p:last-child, .pcard.team .amt small { color: var(--ink); }

/* ---------- last ---------- */
.last { position: relative; background: var(--sky); text-align: center; padding: clamp(90px, 12vw, 150px) 16px 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.last h2 { font-size: clamp(38px, 6vw, 80px); letter-spacing: -0.045em; max-width: 13ch; }
.last .grass { position: relative; margin-top: 70px; height: 40px; width: 100vw; }
.foot { width: 100vw; background: #5cc27b; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 6px 16px 34px; font-size: 14px; font-weight: 600; color: #123b22; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .sunball { width: 260px; height: 260px; top: -90px; right: -70px; }
  .bubble { top: 190px; right: 16px; max-width: 240px; font-size: 15px; }
  .hero-copy { padding-top: 64px; }
  .talk { grid-template-columns: 1fr; }
  .claude-in { grid-template-columns: 1fr; grid-template-areas: 'copy' 'term' 'mini'; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 46px; }
  .sunball { width: 200px; height: 200px; top: -80px; right: -60px; }
  .bubble { top: auto; bottom: 118px; right: 16px; left: 16px; max-width: none; border-radius: 20px; z-index: 5; }
  .bubble::after { display: none; }
  .hero-copy { padding-top: 40px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .lead { font-size: 18px; }
  .cta .btn { flex: 1 1 100%; }
  .yard { gap: 12px; min-height: 330px; margin-top: 46px; }
  .hline { height: 150px; }
  .card { width: 150px; padding: 16px 11px 10px; }
  .card .t { font-size: 14.5px; }
  .composer { font-size: 15px; min-height: 54px; }
  .cap { font-size: 30px; }
  .cline .card { width: 140px; }
  .cline .cards { gap: 8px; }
  .price-line { flex-direction: column; align-items: center; padding-top: 40px; }
  .price-line .rope { display: none; }
  .pcard, .pcard.team { width: 100%; max-width: 360px; margin-top: 0; }
  .mcard { width: 140px; font-size: 13px; }
}
