@font-face {
  font-family: "OpenRunde";
  src: url("/assets/OpenRunde-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OpenRunde";
  src: url("/assets/OpenRunde-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OpenRunde";
  src: url("/assets/OpenRunde-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PhosphorFill";
  src: url("/assets/PhosphorFill-Star.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  color-scheme: light;
  --paper: #f8f8f6;
  --surface: #ffffff;
  --ink: #1d1d1b;
  --muted: #686a64;
  --soft: #8a8d87;
  --line: #deded8;
  --red: #d44738;
  --blue: #9dc7e5;
  --green: #dce9c2;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "OpenRunde", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

/* Home */

.ambient-photos {
  display: none;
}

.home-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
}

.home-shell {
  --frame-top: clamp(20px, 6vh, 72px);
  --frame-border: 32px;
  width: min(920px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: safe center;
  padding: calc(var(--frame-top) + var(--frame-border) + 32px) 0 116px;
  isolation: isolate;
}

.home-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  width: min(860px, 100%);
  top: var(--frame-top);
  background: var(--paper);
  border-radius: 92px 92px 0 0;
  transform: translateX(-50%);
}

.frame-effect {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.frame-effect::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--frame-top) + 4px);
  bottom: 28px;
  z-index: -1;
  width: min(860px, 100%);
  border-radius: 92px 92px 0 0;
  background: rgba(29, 29, 27, 0.36);
  filter: blur(34px);
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.9) 68%,
    rgba(0, 0, 0, 0.62) 79%,
    rgba(0, 0, 0, 0.28) 88%,
    rgba(0, 0, 0, 0.07) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.9) 68%,
    rgba(0, 0, 0, 0.62) 79%,
    rgba(0, 0, 0, 0.28) 88%,
    rgba(0, 0, 0, 0.07) 95%,
    transparent 100%
  );
}

.frame-stroke,
.frame-blur {
  position: absolute;
  left: 50%;
  top: var(--frame-top);
  bottom: 0;
  width: min(860px, 100%);
  background: #000;
  border-radius: 92px 92px 0 0;
  transform: translateX(-50%);
}

.frame-stroke {
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 60%,
    rgba(0, 0, 0, 0.99) 66%,
    rgba(0, 0, 0, 0.97) 71%,
    rgba(0, 0, 0, 0.92) 76%,
    rgba(0, 0, 0, 0.79) 81%,
    rgba(0, 0, 0, 0.58) 86%,
    rgba(0, 0, 0, 0.32) 90%,
    rgba(0, 0, 0, 0.12) 94%,
    rgba(0, 0, 0, 0.045) 96.5%,
    rgba(0, 0, 0, 0.015) 98%,
    rgba(0, 0, 0, 0.003) 99%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 60%,
    rgba(0, 0, 0, 0.99) 66%,
    rgba(0, 0, 0, 0.97) 71%,
    rgba(0, 0, 0, 0.92) 76%,
    rgba(0, 0, 0, 0.79) 81%,
    rgba(0, 0, 0, 0.58) 86%,
    rgba(0, 0, 0, 0.32) 90%,
    rgba(0, 0, 0, 0.12) 94%,
    rgba(0, 0, 0, 0.045) 96.5%,
    rgba(0, 0, 0, 0.015) 98%,
    rgba(0, 0, 0, 0.003) 99%,
    transparent 100%
  );
}

.frame-blur {
  z-index: 1;
  opacity: 0.18;
  filter: blur(2px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 72%,
    rgba(0, 0, 0, 0.03) 78%,
    rgba(0, 0, 0, 0.1) 84%,
    rgba(0, 0, 0, 0.18) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 72%,
    rgba(0, 0, 0, 0.03) 78%,
    rgba(0, 0, 0, 0.1) 84%,
    rgba(0, 0, 0, 0.18) 90%,
    rgba(0, 0, 0, 0.08) 96%,
    transparent 100%
  );
}

.frame-cutout {
  position: absolute;
  left: 50%;
  top: calc(var(--frame-top) + var(--frame-border));
  bottom: 0;
  z-index: 2;
  width: min(796px, calc(100% - var(--frame-border) - var(--frame-border)));
  border-radius: 60px 60px 0 0;
  background: var(--paper);
  transform: translateX(-50%);
}

.home-content {
  width: min(680px, calc(100% - 104px));
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(clamp(26px, 3vh, 42px));
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 30px);
}

.app-icon {
  width: clamp(90px, 10vw, 118px);
  height: auto;
  display: block;
}

.brand-lockup h1 {
  margin: 0;
  font-size: clamp(3.35rem, 7.3vw, 5.65rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.home-subtitle {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.25vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
}

.store-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 54px;
}

.store-button {
  min-width: 210px;
  min-height: 68px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 600;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.store-logo {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: block;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ink);
}

.photo-fan {
  width: min(570px, 90vw);
  height: 285px;
  position: relative;
  margin-top: 86px;
}

.fan-card {
  width: 190px;
  position: absolute;
  top: 18px;
  margin: 0;
  padding: 10px;
  border-radius: 27px;
  background: var(--surface);
  box-shadow: 0 13px 26px rgba(29, 29, 27, 0.14);
  transform-origin: 50% 80%;
}

.fan-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  border-radius: 17px;
}

.star-badge {
  position: absolute;
  right: 17px;
  bottom: 14px;
  color: #fff;
  font-family: "PhosphorFill", sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.34));
}

.fan-card-left {
  left: 56px;
  transform: rotate(-8deg);
}

.fan-card-center {
  z-index: 2;
  left: 50%;
  top: 0;
  transform: translateX(-50%) rotate(-1deg);
}

.fan-card-right {
  right: 56px;
  transform: rotate(8deg);
}

.home-footer {
  width: min(720px, calc(100% - 136px));
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--soft);
  font-size: 0.91rem;
  transform: translateX(-50%);
  z-index: 1;
}

.home-footer a {
  text-decoration: none;
}

/* Privacy pages */

.privacy-page {
  min-height: 100vh;
  position: relative;
  padding: 40px 20px;
  overflow-x: hidden;
}

.privacy-page .close-home {
  width: 44px;
  height: 44px;
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease;
}

.privacy-page .close-home::before,
.privacy-page .close-home::after {
  content: "";
  width: 18px;
  height: 2px;
  position: absolute;
  border-radius: 999px;
  background: var(--ink);
}

.privacy-page .close-home::before {
  transform: rotate(45deg);
}

.privacy-page .close-home::after {
  transform: rotate(-45deg);
}

.privacy-page .close-home:hover {
  transform: scale(1.04);
  background: #f1f1ee;
}

.privacy-page main {
  width: min(860px, 100%);
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(29, 29, 27, 0.06);
}

.privacy-page header {
  padding-right: 58px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.privacy-page h1,
.privacy-page h2 {
  letter-spacing: -0.035em;
}

.privacy-page h1 {
  margin: 0 0 8px;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 0.98;
}

.privacy-page h2 {
  margin: 34px 0 10px;
  font-size: 1.45rem;
}

.privacy-page p,
.privacy-page li {
  line-height: 1.65;
}

.privacy-page ul {
  padding-left: 22px;
}

.privacy-page .updated {
  color: var(--muted);
}

.privacy-page .updated {
  margin: 7px 0 0;
  font-size: 0.93rem;
}

.privacy-page .summary {
  margin: 28px 0 0;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 18px;
  background: var(--paper);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.55;
}

.privacy-page .summary > span:last-child {
  width: 100%;
}

.privacy-page .privacy-icon {
  width: 32px;
  height: 32px;
  display: block;
  flex: 0 0 auto;
  background: #4f9a68;
  -webkit-mask: url("/assets/shield-check.svg") center / contain no-repeat;
  mask: url("/assets/shield-check.svg") center / contain no-repeat;
}

.privacy-page footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.9rem;
}

.privacy-page a {
  text-decoration-color: rgba(104, 106, 100, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.privacy-page footer a {
  text-decoration: none;
}

@media (min-width: 1200px) {
  .ambient-photos {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
    pointer-events: none;
  }

  .ambient-photos::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    background: rgba(248, 248, 246, 0.001);
  }

  .ambient-photos::after {
    top: 78%;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.03) 18%,
      rgba(0, 0, 0, 0.1) 38%,
      rgba(0, 0, 0, 0.28) 62%,
      rgba(0, 0, 0, 0.55) 82%,
      #000 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.03) 18%,
      rgba(0, 0, 0, 0.1) 38%,
      rgba(0, 0, 0, 0.28) 62%,
      rgba(0, 0, 0, 0.55) 82%,
      #000 100%
    );
  }

  .ambient-photo {
    position: absolute;
    width: clamp(250px, 20vw, 390px);
    aspect-ratio: 4 / 5;
    border: 12px solid #e1e1dd;
    border-radius: 44px;
    background: #ecece8;
  }

  .ambient-photo-one {
    width: clamp(220px, 17vw, 330px);
    right: calc(50% + 385px);
    top: 8vh;
    border-radius: 36px;
    transform: rotate(-11deg);
  }

  .ambient-photo-two {
    width: clamp(320px, 24vw, 460px);
    left: calc(50% + 398px);
    top: 20vh;
    border-radius: 52px;
    transform: rotate(9deg);
  }

  .ambient-photo-three {
    width: clamp(280px, 21vw, 410px);
    right: calc(50% + 510px);
    bottom: -12vh;
    aspect-ratio: 4 / 5;
    border-radius: 46px;
    transform: rotate(-13deg);
  }

  .home-shell {
    z-index: 1;
  }
}

@media (min-width: 1800px) and (min-height: 1000px) {
  .home-shell {
    width: min(1120px, calc(100% - 80px));
  }

  .home-shell::before,
  .frame-effect::before,
  .frame-stroke,
  .frame-blur {
    width: min(1040px, 100%);
  }

  .frame-cutout {
    width: min(976px, calc(100% - 64px));
  }

  .home-content {
    width: min(760px, calc(100% - 160px));
    transform: translateY(48px) scale(1.08);
  }

  .home-footer {
    width: min(900px, calc(100% - 144px));
  }

  .brand-lockup,
  .home-subtitle {
    transform: translateY(-52px);
  }

  .store-actions {
    transform: translateY(-30px);
  }

  .ambient-photo-one {
    width: 300px;
    right: calc(50% + 480px);
  }

  .ambient-photo-two {
    width: 420px;
    left: calc(50% + 492px);
  }

  .ambient-photo-three {
    width: clamp(260px, calc(40vw - 460px), 360px);
    right: calc(50% + 620px);
    bottom: 4vh;
  }
}

@media (min-width: 561px) {
  .home-root,
  .home-page {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .home-shell {
    height: 100dvh;
    min-height: 0;
  }
}

@media (min-width: 561px) and (max-height: 920px) {
  .home-shell {
    --frame-top: clamp(18px, 4vh, 40px);
    padding: calc(var(--frame-top) + var(--frame-border) + 22px) 0 88px;
  }

  .home-content {
    transform: translateY(18px);
  }

  .brand-lockup {
    gap: clamp(16px, 2.5vw, 24px);
  }

  .app-icon {
    width: clamp(78px, 12vh, 104px);
  }

  .brand-lockup h1 {
    font-size: clamp(3.1rem, 9vh, 5rem);
  }

  .home-subtitle {
    margin-top: 16px;
    font-size: clamp(1rem, 2.4vh, 1.2rem);
  }

  .store-actions {
    margin-top: 40px;
  }

  .store-button {
    min-height: 62px;
    padding: 12px 26px;
  }

  .photo-fan {
    height: 250px;
    margin-top: 58px;
  }

  .fan-card {
    width: 174px;
    padding: 9px;
    border-radius: 25px;
  }

  .fan-card img {
    border-radius: 16px;
  }
}

@media (min-width: 561px) and (max-height: 720px) {
  .home-shell {
    --frame-top: 18px;
    padding: calc(var(--frame-top) + var(--frame-border) + 16px) 0 70px;
  }

  .home-content {
    transform: translateY(8px);
  }

  .app-icon {
    width: 80px;
  }

  .brand-lockup h1 {
    font-size: 3.6rem;
  }

  .home-subtitle {
    margin-top: 12px;
    font-size: 1rem;
  }

  .store-actions {
    margin-top: 30px;
  }

  .store-button {
    min-height: 56px;
    padding: 10px 24px;
  }

  .photo-fan {
    width: min(500px, 82vw);
    height: 210px;
    margin-top: 36px;
  }

  .fan-card {
    width: 150px;
    padding: 8px;
    border-radius: 22px;
  }

  .fan-card img {
    border-radius: 14px;
  }

  .home-footer {
    bottom: 14px;
  }
}

@media (max-width: 900px) {
  .home-shell {
    width: min(720px, calc(100% - 40px));
  }
}

@media (max-width: 560px) {
  .home-root,
  .home-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    background: var(--paper);
    overscroll-behavior-x: none;
  }

  .home-page {
    min-height: 100dvh;
    position: relative;
    touch-action: pan-y pinch-zoom;
  }

  .home-shell {
    width: 100%;
    min-height: 100dvh;
    margin: 0 auto;
    z-index: 1;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(48px, 7dvh, 64px) 20px max(20px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: var(--paper);
    overflow: clip;
  }

  .home-shell::before,
  .frame-effect {
    display: none;
  }

  .home-content {
    width: 100%;
    transform: none;
  }

  .brand-lockup {
    gap: 10px;
  }

  .app-icon {
    width: 68px;
  }

  .brand-lockup h1 {
    font-size: clamp(3rem, 15vw, 3.85rem);
  }

  .home-subtitle {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .store-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 38px;
  }

  .store-button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    gap: 7px;
    padding: 8px 7px;
    border-width: 2px;
    border-radius: 14px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 3px 0 var(--ink);
  }

  .store-logo {
    width: 19px;
    height: 19px;
  }

  .photo-fan {
    width: min(95%, 332px);
    height: 195px;
    margin-top: clamp(104px, 13dvh, 116px);
  }

  .fan-card {
    width: 135px;
    padding: 7px;
    border-radius: 24px;
    box-shadow: 0 10px 20px rgba(29, 29, 27, 0.1);
  }

  .fan-card-left {
    left: 50%;
    transform: translateX(-92%) rotate(-8deg);
  }

  .fan-card-right {
    right: auto;
    left: 50%;
    transform: translateX(-8%) rotate(8deg);
  }

  .star-badge {
    right: 13px;
    bottom: 11px;
    font-size: 26px;
  }

  .home-footer {
    width: 100%;
    position: static;
    left: auto;
    bottom: auto;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    color: #969993;
    font-size: 0.72rem;
    transform: none;
  }

  .home-footer span {
    order: 1;
  }

  .home-footer a {
    order: 2;
  }

  .privacy-page {
    padding: 16px;
  }

  .privacy-page main {
    border-radius: 22px;
  }

  .privacy-page .close-home {
    width: 40px;
    height: 40px;
    top: 18px;
    right: 18px;
  }

  .privacy-page header {
    padding-right: 48px;
  }

  .privacy-page .summary {
    padding: 18px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .store-actions {
    width: min(100%, 320px);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .photo-fan {
    margin-top: clamp(112px, 13dvh, 124px);
  }
}

@media (max-width: 380px) {
  .photo-fan {
    margin-top: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-button,
  .privacy-page .close-home {
    transition: none;
  }
}
