/*
 * getbukket.com's home page (owner approved the mockup on 15 Nov, design/site-mockup). Shared
 * pieces (colors, top bar, buttons, footer) are in site.css. Real captures of the app sit in drawn
 * phone frames on flat panels of colour; home.js moves things.
 */
:root {
  --gap: 152px;
}
.home {
  font-size: 18px;
  line-height: 1.5;
}
/* :where keeps these resets weaker than any class below. */
:where(.home main) :is(h1, h2, h3, h4, p) {
  margin: 0;
}
:where(.home) section {
  margin-top: var(--gap);
}
.hero h1,
.h2,
.say p,
.copy h3,
.tier h3,
.sheet h4,
.end p.big {
  font-family: var(--display);
}

/* type */
.h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.04;
  max-width: 15.5em;
  text-wrap: balance;
}
.h2 i {
  font-style: normal;
  color: var(--soft);
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 30em;
  margin-top: 22px;
  text-wrap: pretty;
}
.tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
}
.tag svg {
  width: 15px;
  height: 21px;
  flex: none;
  color: var(--accent);
}
.defs {
  position: absolute;
  width: 0;
  height: 0;
}

/* buttons */
.ios {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.ios::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* phone */
.phone {
  --w: 300px;
  width: var(--w);
  flex: none;
  padding: calc(var(--w) * 0.03);
  background: #18181b;
  border-radius: calc(var(--w) * 0.15);
  box-shadow:
    0 0 0 1px #2c2c31 inset,
    0 40px 70px -30px rgba(36, 37, 44, 0.38),
    0 14px 26px -14px rgba(36, 37, 44, 0.22);
  position: relative;
}
.screen {
  position: relative;
  aspect-ratio: 1080/2340;
  border-radius: calc(var(--w) * 0.122);
  overflow: hidden;
  background: var(--screen);
}
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease);
}
.sb {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4.8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2% 7.4% 0;
  font-size: calc(var(--w) * 0.041);
  font-weight: 600;
  color: #3d3e45;
  z-index: 2;
}
.sb svg {
  height: calc(var(--w) * 0.037);
  width: auto;
}
.screen::after {
  content: '';
  position: absolute;
  top: 1.25%;
  left: 50%;
  width: 3.6%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #18181b;
  transform: translateX(-50%);
  z-index: 3;
}

/* hero */
.hero {
  margin-top: 0;
  padding-top: 56px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.kicker {
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: min(108px, 7.6vw);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 0.93;
}
.hero h1 span {
  display: block;
}
.hero h1 .a {
  color: var(--accent);
}
.hero .lede {
  font-size: 21px;
  line-height: 1.45;
  max-width: 24em;
  margin-top: 32px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
}
.hero .ios {
  margin-top: 22px;
}
.stage {
  position: relative;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage .panel {
  position: absolute;
  inset: 0 0 0 40px;
  background: var(--sand);
  border-radius: 36px;
}
.stage .phone {
  --w: 306px;
}
.float {
  position: absolute;
  z-index: 4;
  box-shadow:
    0 26px 50px -22px rgba(36, 37, 44, 0.34),
    0 6px 14px -8px rgba(36, 37, 44, 0.16);
  background: #fff;
  overflow: hidden;
}
.float img {
  width: 100%;
  height: auto;
}
.f-req {
  width: 262px;
  border-radius: 17px;
  top: 318px;
  right: -30px;
}
.f-tile {
  width: 158px;
  border-radius: 26px;
  bottom: 150px;
  left: -50px;
}

/* statement */
.say {
  text-align: center;
}
.say p {
  font-size: clamp(34px, 4.7vw, 66px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
  max-width: 14.5em;
  margin: 0 auto;
  text-wrap: balance;
}
.say i {
  font-style: normal;
  color: var(--soft);
}

/* tabs showcase */
.show {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
  margin-top: 64px;
}
.seg {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 7px;
  border-radius: 999px;
  background: #e9e5de;
  width: min(100%, 372px);
}
.seg i {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: calc((100% - 14px) / 3);
  border-radius: 999px;
  background: #fff;
  transition: transform 0.32s var(--ease);
}
.seg button {
  position: relative;
  height: 50px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s;
}
.seg button[aria-selected='true'] {
  font-weight: 600;
  color: var(--ink);
}
.tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 4px 64px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: opacity 0.4s;
}
.tip svg {
  width: 44px;
  height: 36px;
  color: var(--accent);
  margin-top: 6px;
  animation: nudge 1.8s var(--ease) infinite alternate;
}
.tip.off {
  opacity: 0;
}
@keyframes nudge {
  to {
    transform: translateY(5px);
  }
}
.copy {
  margin-top: 40px;
  min-height: 230px;
}
.copy h3 {
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 11em;
}
.copy p {
  font-size: 19px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 23em;
}
.copy > div {
  display: none;
}
.copy > div.on {
  display: block;
  animation: rise 0.5s var(--ease);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.board {
  position: relative;
  height: 660px;
  border-radius: 36px;
  background: var(--sand);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: background 0.6s var(--ease);
}
.board .phone {
  --w: 340px;
  margin-top: 64px;
}
.board .screen img {
  opacity: 0;
}
.board .screen img.on {
  opacity: 1;
}

/* swipe */
.swipe {
  background: var(--butter);
  border-radius: 36px;
  padding: 88px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 64px;
  align-items: center;
}
.swipe .hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 16px;
  font-weight: 600;
}
.swipe .hint svg {
  width: 22px;
  height: 22px;
}
.sheet {
  background: var(--screen);
  border-radius: 30px;
  padding: 30px 22px 22px;
  box-shadow: 0 34px 60px -34px rgba(90, 70, 20, 0.45);
}
.sheet h4 {
  padding: 0 10px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.sheet h4 b {
  color: var(--accent);
  font-weight: 700;
}
.home .sheet .sub {
  padding: 0 10px;
  font-size: 15px;
  color: var(--muted);
  min-height: 23px;
  margin: 12px 0 14px;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.row {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  transition:
    height 0.28s var(--ease),
    opacity 0.3s;
}
.row:active {
  cursor: grabbing;
}
.rev {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
}
.rev.d {
  background: var(--accent-soft);
}
.rev.d.hot {
  background: var(--accent);
}
.rev.x {
  justify-content: flex-end;
  background: #f3a6a8;
}
.rev.x.hot {
  background: #e5484d;
}
.rev b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease);
}
.rev.hot b {
  transform: scale(1.18);
}
.rev svg {
  width: 16px;
  height: 16px;
}
.rc {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 15px 10px;
  background: var(--screen);
  border-radius: 16px;
}
.rc .t {
  flex: none;
  width: 84px;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.rc .n {
  font-size: 18px;
  line-height: 1.35;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 56%/0 1.5px;
  transition:
    background-size 0.38s 0.09s var(--ease),
    color 0.3s;
}
.row.done .t {
  color: #c4c1bb;
  text-decoration: line-through;
}
.row.done .n {
  color: #c4c1bb;
  background-size: 100% 1.5px;
}
.row.flash .rc {
  animation: flash 0.6s;
}
@keyframes flash {
  30% {
    background: #ffe5da;
  }
}
.again {
  margin: 10px 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  visibility: hidden;
}
.again.on {
  visibility: visible;
}
.bit {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9;
}

/* together */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: center;
}
.duo .board {
  height: 640px;
  background: var(--sky);
  align-items: flex-start;
  gap: 28px;
}
.duo .board .phone {
  --w: 286px;
}
.duo .board .phone:first-child {
  margin-top: 150px;
}
.duo .board .phone:last-child {
  margin-top: 64px;
}
.duo .board .screen img {
  opacity: 1;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.facts li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 11em) 1fr;
  gap: 20px;
  font-size: 17px;
}
.facts b {
  font-weight: 600;
}
.facts span {
  color: var(--muted);
}

/* widgets */
.wid {
  background: var(--sage);
  border-radius: 36px;
  padding: 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 56px;
  align-items: center;
  overflow: hidden;
}
.wid .txt {
  padding: 88px 0;
}
.wid .pile {
  position: relative;
  height: 560px;
}
.wid .pile img {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(50, 70, 40, 0.24));
}
.wid .w1 {
  width: 330px;
  right: 0;
  top: 40px;
}
.wid .w2 {
  width: 300px;
  left: 0;
  bottom: 40px;
}
.note {
  font-size: 15px;
  color: var(--muted);
  margin-top: 20px;
}

/* details */
.more {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 80px;
  align-items: center;
}
.more .photo {
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.more .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  border-top: 1px solid var(--line);
}
.list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}
.list b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
}

/* plans */
.plans {
  display: block;
}
.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}
.tier {
  border-radius: 32px;
  padding: 44px 44px 36px;
  display: flex;
  flex-direction: column;
}
.tier.free {
  border: 1px solid var(--line);
}
.tier.pro {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 44px 70px -44px rgba(36, 37, 44, 0.55);
}
.tier h3 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.tier .k {
  font-size: 17px;
  color: var(--muted);
  margin-top: 10px;
}
.tier.pro .k,
.tier.pro li span {
  color: #b5b1aa;
}
.tier ul {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}
.tier li:last-child {
  padding-bottom: 0;
}
.tier li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  align-items: start;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
}
.tier.pro li {
  border-color: rgba(255, 255, 255, 0.13);
}
.tier li svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}
.tier li b {
  font-weight: 600;
  display: block;
}
.tier li span {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-top: 1px;
}
.tier ul {
  flex: 1;
}

/* closing */
.end {
  background: var(--accent);
  color: #fff;
  border-radius: 36px;
  padding: 104px 72px;
  position: relative;
  overflow: hidden;
}
.end p.big {
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 0.93;
}
.end .lede {
  color: #fff;
  font-size: 21px;
  margin-top: 26px;
}
.end .cta {
  margin-top: 40px;
}
.end .mark {
  position: absolute;
  right: 64px;
  bottom: -190px;
  width: 310px;
  height: 429px;
  opacity: 0.16;
}
.end .ios {
  color: #fff;
}
.end .ios::before {
  background: #fff;
}

/* reveal: each piece rises in once; the d classes stagger them */
.d1 {
  --d: 0.06s;
}
.d2 {
  --d: 0.14s;
}
.d3 {
  --d: 0.22s;
}
.d4 {
  --d: 0.3s;
}
.d5 {
  --d: 0.36s;
}
.stage .phone {
  --d: 0.15s;
}
.f-req {
  --d: 0.55s;
  --r: 2.5deg;
}
.f-tile {
  --d: 0.7s;
  --r: -4deg;
}
.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .rv.in {
  opacity: 1;
  transform: none;
}
.js .pop {
  opacity: 0;
  transform: translateY(26px) scale(0.94);
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s cubic-bezier(0.34, 1.4, 0.64, 1);
  transition-delay: var(--d, 0s);
}
.js .pop.in {
  opacity: 1;
  transform: translateY(var(--py, 0px)) rotate(var(--r, 0deg));
}

/* tablet */
@media (max-width: 1020px) {
  :root {
    --gap: 120px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero h1 {
    font-size: clamp(60px, 15.4vw, 112px);
  }
  .stage {
    height: 700px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .stage .panel {
    inset: 0;
  }
  .f-req {
    right: -14px;
  }
  .f-tile {
    left: -14px;
    bottom: 170px;
  }
  .show,
  .duo,
  .more,
  .plans {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .copy {
    min-height: 0;
    margin-top: 32px;
  }
  .duo .board {
    order: 2;
  }
  .swipe {
    grid-template-columns: 1fr;
    padding: 64px 48px;
    gap: 44px;
  }
  .sheet {
    max-width: 460px;
    width: 100%;
  }
  .wid {
    grid-template-columns: 1fr;
    padding: 0 48px;
    gap: 0;
  }
  .wid .txt {
    padding: 64px 0 0;
  }
  .wid .pile {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
  .more .photo {
    aspect-ratio: 16/11;
    max-height: 520px;
  }
  .end {
    padding: 80px 48px;
  }
  .tiers {
    gap: 16px;
  }
  .tier {
    padding: 32px 28px 28px;
  }
}
/* phone */
@media (max-width: 640px) {
  :root {
    --gap: 92px;
  }
  .home {
    font-size: 17px;
  }
  .hero {
    padding-top: 30px;
  }
  .kicker {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .hero .lede {
    font-size: 18px;
    margin-top: 22px;
  }
  .cta {
    margin-top: 28px;
  }
  .stage {
    height: 560px;
  }
  .stage .panel {
    border-radius: 28px;
  }
  .stage .phone {
    --w: 236px;
  }
  .f-req {
    width: 178px;
    top: 232px;
    right: -8px;
    border-radius: 12px;
  }
  .f-tile {
    width: 104px;
    bottom: 150px;
    left: -8px;
    border-radius: 17px;
  }
  .lede {
    font-size: 17px;
    margin-top: 16px;
  }
  .show {
    margin-top: 36px;
    gap: 28px;
  }
  .seg {
    width: 100%;
  }
  .board {
    height: 520px;
    border-radius: 28px;
  }
  .board .phone {
    --w: 262px;
    margin-top: 44px;
  }
  .copy p {
    font-size: 17px;
  }
  .swipe {
    margin: 0 calc(var(--gut) * -1 + 8px);
    padding: 48px 20px 20px;
    border-radius: 28px;
    gap: 32px;
  }
  .swipe .txt {
    padding: 0 8px;
  }
  .sheet {
    padding: 24px 12px 16px;
    border-radius: 24px;
  }
  .duo .board {
    height: 440px;
    gap: 10px;
    padding: 0;
  }
  .duo .board .phone {
    --w: 164px;
  }
  .duo .board .phone:first-child {
    margin-top: 92px;
  }
  .duo .board .phone:last-child {
    margin-top: 40px;
  }
  .facts li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 15px 0;
  }
  .wid {
    margin: 0 calc(var(--gut) * -1 + 8px);
    padding: 0 24px;
    border-radius: 28px;
  }
  .wid .txt {
    padding: 48px 0 0;
  }
  .wid .pile {
    height: 440px;
  }
  .wid .w1 {
    width: 236px;
    top: 36px;
  }
  .wid .w2 {
    width: 226px;
    bottom: 40px;
  }
  .more .photo {
    border-radius: 28px;
    aspect-ratio: 1/1;
  }
  .list {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  .tiers {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }
  .tier {
    border-radius: 28px;
    padding: 32px 24px 28px;
  }
  .tier h3 {
    font-size: 38px;
  }
  .end {
    margin: 0 calc(var(--gut) * -1 + 8px);
    padding: 64px 24px 150px;
    border-radius: 28px;
  }
  .end .mark {
    width: 210px;
    height: 290px;
    right: -10px;
    bottom: -56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv,
  .js .pop {
    opacity: 1;
    transform: rotate(var(--r, 0deg));
    transition: none;
  }
}

/* the d classes stagger pieces that rise in together */
.dl {
  --d: 0.1s;
}
