@charset "UTF-8";
:root {
  /* Light on purpose: an iframe is only transparent when its page shares the colour scheme. */
  color-scheme: light;
  --sand: #e9e4d7;
  --ink: #1b1d20;
  --bg: var(--sand);
  --fg: var(--ink);
  --disc: #ffffff59;
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
/* The hero takes the colour of whichever app is open (set by phone.js). */
html[data-snor-app='rumi'] {
  --bg: #c9532f;
  --fg: #fff4e6;
  --disc: #ffffff1f;
}
html[data-snor-app='shortblocker'] {
  --bg: #226043;
  --fg: #eef5ef;
  --disc: #ffffff1a;
}
html[data-snor-app='remote'] {
  --bg: #2b3034;
  --fg: #f1f1ed;
  --disc: #ffffff12;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body,
h2,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
body {
  color: var(--ink);
  background: var(--sand);
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 4px;
}
.logo {
  display: block;
  aspect-ratio: 327.33 / 69.22;
  background: currentColor;
  -webkit-mask: url('/assets/snor-ltd-logo.svg') center / contain no-repeat;
  mask: url('/assets/snor-ltd-logo.svg') center / contain no-repeat;
}
.mail {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.small {
  font-size: 0.6875rem;
  line-height: 1.6;
  letter-spacing: 0.005em;
}
.nowrap {
  white-space: nowrap;
}

/* ---- hero -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100svh;
  color: var(--fg);
  background-color: var(--bg);
  overflow: hidden;
  /* This is a clipping boundary, never a scroll container. Focus/scroll-into-view
     during a phone transition must not scroll the hero's contents. */
  overflow: clip;
  transition:
    background-color 0.9s ease,
    color 0.9s ease;
}
.stage {
  position: relative;
  min-height: 560px;
}
.stage [data-snor-phone] {
  position: absolute;
  inset: 0;
}
.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 20px 0;
  text-align: center;
  transition: opacity 0.5s ease;
}
.copy .logo {
  width: 96px;
}
.tagline {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0.72;
}
.hero-foot {
  position: relative;
  container-type: inline-size;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 20px 22px;
}
.scroll-cue {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: none;
  cursor: pointer;
  opacity: 0.8;
  transition:
    opacity 0.2s,
    transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.scroll-cue:hover {
  opacity: 1;
  transform: translateY(3px);
}
.scroll-cue svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* shown only while the True Remote demo is open */
.disclaimer {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-size: min(9px, calc((100vw - 120px) / 40));
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}
html[data-snor-app='remote'] .disclaimer {
  opacity: 0.66;
  visibility: visible;
}

@media (min-width: 900px) {
  .hero {
    container-type: inline-size;
    display: block;
    height: 100svh;
    min-height: 680px;
  }
  /* a soft disc behind the handset */
  .hero::before {
    content: '';
    position: absolute;
    left: 31%;
    top: 50%;
    width: min(88vmin, 960px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--disc);
    pointer-events: none;
    transition:
      background 0.9s ease,
      transform 0.75s cubic-bezier(0.22, 0.85, 0.25, 1);
  }
  html[data-snor-app='remote'] .hero::before {
    transform: translate(calc(-50% + 19cqw), -50%);
  }
  .stage {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
  .stage [data-snor-phone] {
    --sp-anchor: 0.31;
  }
  .copy {
    position: absolute;
    right: clamp(40px, 6vw, 110px);
    top: 50%;
    width: min(42vw, 700px);
    align-items: flex-start;
    gap: clamp(14px, 1.8vw, 26px);
    padding: 0;
    text-align: left;
    transform: translateY(-50%);
  }
  .copy .logo {
    width: 100%;
  }
  .tagline {
    margin-top: clamp(6px, 1.2vw, 18px);
    font-size: clamp(1.4rem, 2.7vw, 2.5rem);
    letter-spacing: -0.035em;
    opacity: 0.78;
  }
  html[data-snor-app='remote'] .copy {
    opacity: 0;
    pointer-events: none;
  }
  .hero-foot {
    position: absolute;
    inset: auto 0 0;
    justify-content: space-between;
    padding: 0 clamp(28px, 3.4vw, 54px) clamp(24px, 3vw, 40px);
    pointer-events: none;
  }
  .hero-foot > * {
    pointer-events: auto;
  }
  .disclaimer {
    bottom: clamp(24px, 3vw, 40px);
  }
  .scroll-cue {
    z-index: 5;
  }
}

/* Phones: the landing page is exactly one visible screen tall (svh stops at the browser's
   toolbars), so the scroll button is never pushed below them. */
@media (max-width: 899px) {
  .hero {
    height: 100svh;
    min-height: 520px;
  }
  .stage {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
  .stage [data-snor-phone] {
    --sp-home-top: 64px;
    --sp-home-bottom: 66px;
  }
  .hero-foot {
    position: absolute;
    inset: auto 0 0;
    padding-bottom: 14px;
    pointer-events: none;
  }
  .hero-foot > * {
    pointer-events: auto;
  }
  /* Keep the stage the same size in both states. Collapsing this header used to
     resize the iframe and cancel the handset's transform on every frame. */
  .copy {
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    gap: 8px;
    padding-top: 16px;
    transition:
      opacity 0.2s ease,
      transform 0.42s cubic-bezier(0.22, 0.85, 0.25, 1),
      visibility 0s;
  }
  html[data-snor-app='remote'] .copy {
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition-delay: 0s, 0s, 0.2s;
  }
  html[data-snor-app='remote'] .hero-foot {
    position: absolute;
    inset: auto 0 0;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    padding-inline: 16px;
    pointer-events: none;
  }
  html[data-snor-app='remote'] .scroll-cue {
    transform: scale(0.75);
    transform-origin: left bottom;
    pointer-events: auto;
  }
}

/* ---- more about Snor LTD ----------------------------------------------------------- */
.about {
  position: relative;
  padding: clamp(72px, 10vw, 150px) clamp(24px, 6vw, 110px) 0;
}
.scroll-cue-up {
  position: absolute;
  top: 22px;
  left: 20px;
}
@media (min-width: 900px) {
  .scroll-cue-up {
    top: clamp(24px, 3vw, 40px);
    left: clamp(28px, 3.4vw, 54px);
  }
}
.scroll-cue-up:hover {
  transform: translateY(-3px);
}
.about-inner {
  width: min(100%, 1180px);
  margin-inline: auto;
}
.about h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.about-intro {
  max-width: 560px;
  margin-top: clamp(20px, 2.6vw, 34px);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  opacity: 0.72;
}
.app-list {
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid #1b1d2024;
}
.app-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid #1b1d2024;
}
.app-list img {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 8px 18px -8px #1b1d2055;
}
.app-list h3 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.app-list p {
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.7;
}
.try {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1.5px solid #1b1d2040;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 550;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.try:hover {
  color: var(--sand);
  background: var(--ink);
  border-color: var(--ink);
}
.contact {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 28px;
  text-align: right;
  margin-top: clamp(64px, 9vw, 130px);
}
.contact p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  opacity: 0.6;
}
.contact .mail {
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.company {
  margin-top: clamp(56px, 8vw, 110px);
  padding-block: 28px 36px;
  border-top: 1px solid #1b1d2024;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 40px;
  opacity: 0.66;
}
.company p {
  max-width: 440px;
}

@media (max-width: 640px) {
  .app-list li {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .app-list img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .app-list .try {
    grid-column: 2;
    justify-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
