/* catnook.aneesstudio.com, the home page only (the policy pages keep
   site.css). The room at night, made into a page: chocolate walls with a
   faint stripe of wallpaper, a lamp glowing in the top corner, cream type.
   Everything comes from this site -- the fonts are the app's own, served
   from /fonts -- and nothing runs: every bit of motion is CSS, and all of
   it stops for anyone who has asked for less motion. */

@font-face {
  font-family: "Chewy";
  src: url("/fonts/chewy.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #140d09;
  --wall: #1d1510;
  --rug: #2a1f17;
  --seam: rgba(255, 232, 205, 0.09);
  --seam-strong: rgba(255, 232, 205, 0.16);
  --cream: #f7ede0;
  --dust: #c9b8a2;
  --dim: #9c8a76;
  --lamp: #f59a30;
  --lamp-glow: rgba(245, 154, 48, 0.24);
  --sage: #a8bd82;
  --sage-ink: #1b2410;
  --display: "Chewy", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page: min(100% - 32px, 1160px);
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background: var(--night);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--cream);
  font: 17px/1.6 var(--body);
  background:
    radial-gradient(70rem 46rem at 88% -12%, var(--lamp-glow), transparent 62%),
    radial-gradient(52rem 40rem at -12% 38%, rgba(168, 189, 130, 0.07), transparent 64%),
    radial-gradient(60rem 50rem at 50% 115%, rgba(245, 154, 48, 0.10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 240, 220, 0.014) 0 56px, transparent 56px 112px),
    linear-gradient(180deg, var(--wall), var(--night) 40%);
  background-color: var(--night);
  overflow-x: clip;
}

img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: normal; color: var(--lamp); }
b { font-weight: 800; }
a { color: var(--sage); text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--night);
  font-weight: 800;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(20, 13, 9, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--seam);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: var(--page);
  height: 64px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font: 26px/1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.brand img { border-radius: 10px; }

.bar-nav { display: none; gap: 26px; margin-inline-start: auto; }
.bar-nav a {
  color: var(--dust);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}
.bar-nav a:hover { color: var(--cream); }

.bar-get {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline-start: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
}
.bar-get:hover { transform: translateY(-1px); background: #b8cc92; }
.bar-get, .bar-nav a { white-space: nowrap; }

@media (max-width: 380px) {
  .bar-inner { gap: 12px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .bar-get { padding: 9px 14px; font-size: 14px; }
}

@media (min-width: 860px) {
  .bar-nav { display: flex; }
  .bar-get { margin-inline-start: 0; }
}

/* --------------------------------------------------------------- hero */

.hero {
  display: grid;
  gap: 48px;
  width: var(--page);
  margin: 0 auto;
  padding: 56px 0 72px;
}

.eyebrow {
  color: var(--dust);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-top: 14px;
  font: clamp(46px, 9.5vw, 86px)/0.98 var(--display);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.lede {
  max-width: 34em;
  margin-top: 22px;
  color: var(--dust);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores-center { justify-content: center; }

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  margin: 0;
  padding: 10px 24px 11px;
  border-radius: 18px;
  text-decoration: none;
  line-height: 1.15;
}
.store-small { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.store-big { font: 24px/1.05 var(--display); }

.store-live {
  background: linear-gradient(180deg, #b6c991, var(--sage));
  color: var(--sage-ink);
  box-shadow: 0 14px 32px -14px rgba(168, 189, 130, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(168, 189, 130, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.store-soon {
  color: var(--dim);
  border: 1px dashed var(--seam-strong);
  background: rgba(255, 240, 222, 0.02);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--dust);
  font-size: 15px;
  font-weight: 700;
}
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 10px var(--lamp);
}

/* The two phones: the room at golden hour behind, the same room at night
   in front, and the Lock Screen's session card resting against them. */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 560 / 700;
  margin-inline: auto;
}

.hero-glow {
  position: absolute;
  inset: 6% 4% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 154, 48, 0.32), transparent);
  filter: blur(20px);
  animation: lamp 6s ease-in-out infinite alternate;
}

.phone {
  position: relative;
  margin: 0;
  padding: 9px;
  border-radius: 48px;
  background: linear-gradient(150deg, #3a2c22, #0c0806 55%, #2a1f17);
  box-shadow:
    0 50px 90px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 236, 214, 0.10),
    inset 0 0 0 1px rgba(255, 236, 214, 0.06);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 40px;
}
.phone::after {
  content: "";
  position: absolute;
  top: 3.1%;
  left: 50%;
  width: 29%;
  height: 2.5%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050302;
}

.phone-back, .phone-front { position: absolute; width: 50%; }
.phone-back {
  --tilt: -6deg;
  top: 0;
  left: 6%;
  transform: rotate(var(--tilt));
  animation: drift 7s ease-in-out infinite alternate;
}
.phone-front {
  --tilt: 4deg;
  top: 7%;
  right: 6%;
  transform: rotate(var(--tilt));
  animation: drift 7s ease-in-out -3.5s infinite alternate;
}
/* The frames are scaled to the box, so the corners follow the width. */
.hero-art .phone { padding: 1.6%; border-radius: 15% / 7%; }
.hero-art .phone img { border-radius: 13.5% / 6.3%; }

.hero-live {
  position: absolute;
  bottom: 2%;
  left: 0;
  width: 66%;
  height: auto;
  transform: rotate(-2deg);
  border-radius: 7% / 22%;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 236, 214, 0.12);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 72px 0 96px;
  }
  .hero h1 { font-size: clamp(56px, 5.6vw, 78px); }
}

/* ------------------------------------------------------ section heads */

.section-head {
  max-width: 44em;
  margin: 0 auto;
  text-align: center;
}
.section-head h2, .pro h2, .last h2 {
  font: clamp(38px, 6.5vw, 62px)/1.02 var(--display);
  text-wrap: balance;
}
.section-head p {
  margin-top: 18px;
  color: var(--dust);
  font-size: clamp(17px, 2vw, 19px);
}

/* -------------------------------------------------------------- hours */

.hours {
  width: var(--page);
  margin: 0 auto;
  padding: 72px 0;
}

.clock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 3vw, 40px);
  max-width: 900px;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
}
.clock li { text-align: center; }
.clock li:nth-child(2) { transform: translateY(-18px); }
.clock p {
  margin-top: 16px;
  color: var(--dust);
  font-size: clamp(13px, 1.8vw, 16px);
  line-height: 1.35;
}
.clock b {
  display: block;
  color: var(--cream);
  font: clamp(20px, 3vw, 30px)/1.1 var(--display);
}

.phone-small { padding: clamp(4px, 0.8vw, 8px); border-radius: clamp(20px, 4vw, 40px); }
.phone-small img { border-radius: clamp(16px, 3.4vw, 33px); }

/* -------------------------------------------------------------- tiles */

.inside {
  width: var(--page);
  margin: 0 auto;
  padding: 72px 0;
}

.tiles {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}

.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(28rem 18rem at 100% 0, rgba(245, 154, 48, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 240, 222, 0.055), rgba(255, 240, 222, 0.02));
  box-shadow: inset 0 0 0 1px var(--seam), 0 30px 60px -40px rgba(0, 0, 0, 0.8);
}

.tile-text { padding: 28px 28px 0; }
.tile h3 { font: clamp(28px, 3.4vw, 34px)/1.05 var(--display); }
.tile p { margin-top: 12px; color: var(--dust); font-size: 16px; }

/* A phone rising from the bottom of the card, cut off by its edge. */
.peek {
  position: relative;
  height: 290px;
  margin-top: 26px;
  overflow: hidden;
}
.peek img {
  display: block;
  width: min(74%, 290px);
  height: auto;
  margin: 0 auto;
  padding: 7px 7px 0;
  border-radius: 34px 34px 0 0;
  background: #0c0806;
  box-shadow: 0 0 0 1px rgba(255, 236, 214, 0.10), 0 -10px 40px -10px rgba(245, 154, 48, 0.25);
}

/* Where the interesting part of a screen is lower down: show that part. */
.peek-low img, .peek-walk img {
  height: 100%;
  object-fit: cover;
}
.peek-low img { object-position: 50% 100%; }
.peek-walk img { object-position: 50% 64%; }

@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .tile-wide .tile-text { flex: 1 1 52%; padding: 40px; align-self: center; }
  .tile-wide .peek { flex: 1 1 48%; height: 360px; margin-top: 40px; }
}

@media (min-width: 1040px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------- visits */

.visits {
  display: grid;
  gap: 40px;
  width: var(--page);
  margin: 0 auto;
  padding: 72px 0;
  align-items: center;
}

.visits h2 { font: clamp(38px, 6.5vw, 62px)/1.02 var(--display); }
.visits-copy > p {
  max-width: 32em;
  margin-top: 18px;
  color: var(--dust);
  font-size: clamp(17px, 2vw, 19px);
}

.visits-points {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.visits-points li {
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(255, 240, 222, 0.04);
  box-shadow: inset 0 0 0 1px var(--seam);
  color: var(--dust);
}
.visits-points b { display: block; color: var(--cream); font-weight: 800; }

.visits-phone {
  width: min(70vw, 300px);
  margin-inline: auto;
  transform: rotate(3deg);
}
.visits-phone::before {
  content: "";
  position: absolute;
  inset: -12% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(120, 140, 220, 0.20), transparent);
}

@media (min-width: 860px) {
  .visits { grid-template-columns: 1.2fr 1fr; gap: 56px; }
}

/* ---------------------------------------------------------------- pro */

.pro {
  width: var(--page);
  margin: 0 auto;
  padding: 72px 0;
}

.pro-card {
  display: grid;
  gap: 32px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 36px;
  background:
    radial-gradient(40rem 26rem at 0 0, rgba(245, 154, 48, 0.16), transparent 70%),
    radial-gradient(36rem 24rem at 100% 100%, rgba(168, 189, 130, 0.12), transparent 70%),
    var(--rug);
  box-shadow: inset 0 0 0 1px var(--seam-strong), 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}

.pro-intro p { margin-top: 16px; color: var(--dust); font-size: 18px; }
.pro-intro .pro-plans { color: var(--cream); font-weight: 700; }
.pro-get {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s;
}
.pro-get:hover { transform: translateY(-2px); }

.pro-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: center;
}
.pro-list li {
  position: relative;
  padding-inline-start: 34px;
  font-weight: 700;
}
/* A small drawn tick, not a glyph. */
.pro-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.32em;
  width: 8px;
  height: 14px;
  border: solid var(--sage);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

@media (min-width: 860px) {
  .pro-card { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ------------------------------------------------------------ promise */

.promise {
  width: var(--page);
  margin: 0 auto;
  padding: 72px 0;
}

.promise-grid {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}
.promise-item {
  padding: 26px 28px;
  border-radius: 24px;
  background: rgba(255, 240, 222, 0.03);
  box-shadow: inset 0 0 0 1px var(--seam);
}
.promise-item h3 { font: 26px/1.1 var(--display); color: var(--cream); }
.promise-item p { margin-top: 10px; color: var(--dust); font-size: 16px; }
.promise-more { margin-top: 26px; text-align: center; color: var(--dust); }

@media (min-width: 860px) {
  .promise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------- last */

.last {
  width: var(--page);
  margin: 0 auto;
  padding: 80px 0 96px;
  text-align: center;
}
.last .stores { margin-top: 30px; }

/* --------------------------------------------------------------- foot */

.foot {
  border-top: 1px solid var(--seam);
  background: rgba(10, 6, 4, 0.5);
}
.foot-inner {
  display: grid;
  gap: 16px;
  width: var(--page);
  margin: 0 auto;
  padding: 36px 0 max(40px, env(safe-area-inset-bottom));
  color: var(--dust);
  font-size: 15px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}
.foot nav a:hover { text-decoration: underline; }
.foot-small { color: var(--dim); font-size: 13px; }

/* ------------------------------------------------------------- motion */

@keyframes drift {
  from { transform: translateY(0) rotate(var(--tilt)); }
  to { transform: translateY(-12px) rotate(var(--tilt)); }
}

@keyframes lamp {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* Cards settle in as they scroll into view, where the browser can tie an
   animation to scrolling without a script. Elsewhere they are simply there. */
@supports (animation-timeline: view()) {
  .tile, .clock li, .pro-card, .promise-item, .visits-points li {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  .clock li:nth-child(2) { animation-name: rise-high; }
  @keyframes rise-high {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(-18px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
