/* FrameIT website. One family (Bricolage Grotesque), the app icon's night and its pink-to-blue
   gradient, and real phone frames drawn the way the app draws them. */

:root {
  --night: #0e0b16;
  --night-2: #1a1526;
  --mist: #f4f2fa;
  --ink: #17131f;
  --muted: #625d75;
  --muted-on-night: #a8a3bc;
  --line: #e2deec;
  --pink: #ff63d8;
  --violet: #a35cff;
  --blue: #0b63ff;
  --brand: linear-gradient(120deg, var(--pink), var(--violet) 50%, var(--blue));
  --radius: 22px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* MARK: Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--brand);
  background-size: 160% 100%;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(163, 92, 255, 0.7);
  transition: background-position 0.4s ease, transform 0.15s ease;
}

.btn:hover {
  background-position: 100% 0;
}

.btn:active {
  transform: scale(0.97);
}

.btn-small {
  padding: 10px 18px;
  font-size: 15px;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

/* MARK: Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--gutter);
  background: rgba(14, 11, 22, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.top nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 15px;
}

.top nav a {
  color: var(--muted-on-night);
  text-decoration: none;
}

.top nav a:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .top nav {
    display: none;
  }

  .top .btn-small {
    margin-left: auto;
  }
}

/* MARK: Phone (the app's 18 Pro Max frame: screen at 5.1% / 2.2%, 89.8% × 95.6%) */

.phone {
  position: relative;
  aspect-ratio: 1470 / 3000;
}

.phone .bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.screen {
  position: absolute;
  left: 5.102%;
  top: 2.2%;
  width: 89.796%;
  height: 95.6%;
  overflow: hidden;
  border-radius: 13.4% / 5.9%;
  container-type: inline-size;
  background: #fff;
  color: #111;
  font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
}

/* One point of a 440 pt wide iPhone screen. */
.screen > * {
  --pt: calc(100cqw / 440);
}

/* MARK: Status bar */

.sb {
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--pt) * 62);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--pt) * 6) calc(var(--pt) * 34) 0 calc(var(--pt) * 50);
  font-weight: 600;
  font-size: calc(var(--pt) * 17);
  letter-spacing: -0.01em;
  z-index: 2;
}

.sb-time {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--pt) * 4);
}

.moon {
  width: calc(var(--pt) * 12);
  height: calc(var(--pt) * 12);
}

.sb-icons {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--pt) * 6);
}

.sb-icons svg {
  width: calc(var(--pt) * 18);
  height: calc(var(--pt) * 12);
}

.batt {
  position: relative;
  width: calc(var(--pt) * 27);
  height: calc(var(--pt) * 13);
  border: calc(var(--pt) * 1.2) solid currentColor;
  border-radius: calc(var(--pt) * 4);
  opacity: 0.95;
}

.batt::after {
  content: '';
  position: absolute;
  right: calc(var(--pt) * -3.5);
  top: 30%;
  width: calc(var(--pt) * 1.6);
  height: 40%;
  border-radius: 0 2px 2px 0;
  background: currentColor;
  opacity: 0.5;
}

.batt i {
  position: absolute;
  inset: calc(var(--pt) * 1.5);
  border-radius: calc(var(--pt) * 2);
  background: currentColor;
}

.batt.low i {
  right: 78%;
  background: #ff3b30;
}

/* The recording dot iOS draws in a screen recording, left of the island. */
.rec {
  position: absolute;
  left: 36.5%;
  top: calc(var(--pt) * 23);
  width: calc(var(--pt) * 10);
  height: calc(var(--pt) * 10);
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 calc(var(--pt) * 3) rgba(255, 59, 48, 0.25);
}

.sb.dark-ink {
  color: #111;
}

/* MARK: The made-up app screens */

.app {
  position: absolute;
  inset: calc(var(--pt) * 70) 0 0;
  padding: calc(var(--pt) * 16) calc(var(--pt) * 22);
}

.screen-budget {
  background: linear-gradient(180deg, #13101d, #1d1730 60%, #13101d);
  color: #fff;
}

.app-hi {
  font-size: calc(var(--pt) * 15);
  color: #a9a3bd;
}

.app-label {
  margin-top: calc(var(--pt) * 14);
  font-size: calc(var(--pt) * 14);
  color: #a9a3bd;
}

.app-big {
  font-size: calc(var(--pt) * 46);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.app-big small {
  font-size: 0.55em;
  color: #a9a3bd;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: calc(var(--pt) * 10);
  height: calc(var(--pt) * 120);
  margin-top: calc(var(--pt) * 20);
}

.bars i {
  flex: 1;
  height: var(--h);
  border-radius: calc(var(--pt) * 8);
  background: rgba(255, 255, 255, 0.14);
}

.bars i.now {
  background: linear-gradient(180deg, #ff63d8, #6b5cff);
}

.rows {
  list-style: none;
  margin: calc(var(--pt) * 22) 0 0;
  padding: 0;
}

.rows li {
  display: flex;
  align-items: center;
  gap: calc(var(--pt) * 12);
  padding: calc(var(--pt) * 12) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: calc(var(--pt) * 16);
}

.rows span {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rows small {
  font-size: calc(var(--pt) * 12);
  color: #8e88a3;
}

.rows em {
  font-style: normal;
  font-weight: 600;
}

.rows em.in {
  color: #4ade80;
}

.dot {
  width: calc(var(--pt) * 36);
  height: calc(var(--pt) * 36);
  border-radius: calc(var(--pt) * 11);
}

.c1 { background: #34d399; }
.c2 { background: #f59e0b; }
.c3 { background: #60a5fa; }
.c4 { background: #f472b6; }

.screen-chat {
  background: #eef0f5;
}

.chat-head {
  margin: calc(var(--pt) * -6) calc(var(--pt) * -22) calc(var(--pt) * 16);
  padding-bottom: calc(var(--pt) * 12);
  text-align: center;
  font-weight: 600;
  font-size: calc(var(--pt) * 17);
  border-bottom: 1px solid #dde0e8;
}

.bubble {
  max-width: 78%;
  margin-bottom: calc(var(--pt) * 10);
  padding: calc(var(--pt) * 10) calc(var(--pt) * 14);
  border-radius: calc(var(--pt) * 20);
  font-size: calc(var(--pt) * 16);
  line-height: 1.3;
}

.bubble.them {
  background: #fff;
}

.bubble.me {
  margin-left: auto;
  background: #3b82f6;
  color: #fff;
}

.screen-run {
  background: radial-gradient(120% 70% at 50% 30%, #1b2f2a, #0b1412);
  color: #fff;
}

.screen-run .app-label {
  color: #8fd3b6;
}

.ring {
  width: 70%;
  aspect-ratio: 1;
  margin: calc(var(--pt) * 26) auto;
  border-radius: 50%;
  background: conic-gradient(#3ef0a0 0 72%, rgba(255, 255, 255, 0.1) 72% 100%);
  mask: radial-gradient(circle, transparent 62%, #000 63%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
}

.stats {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.stats b {
  display: block;
  font-size: calc(var(--pt) * 24);
}

.stats small {
  font-size: calc(var(--pt) * 13);
  color: #8fd3b6;
}

.screen-feed {
  background: #fff;
}

.feed {
  position: absolute;
  inset: calc(var(--pt) * 62) 0 auto;
  padding: calc(var(--pt) * 8) calc(var(--pt) * 18);
}

.post {
  display: grid;
  grid-template-columns: calc(var(--pt) * 40) 1fr;
  gap: calc(var(--pt) * 6) calc(var(--pt) * 12);
  padding: calc(var(--pt) * 14) 0;
  border-bottom: 1px solid #eceef3;
  font-size: calc(var(--pt) * 15);
  line-height: 1.35;
}

.post strong {
  display: block;
}

.avatar {
  width: calc(var(--pt) * 40);
  height: calc(var(--pt) * 40);
  border-radius: 50%;
}

.a1 { background: linear-gradient(135deg, #ff63d8, #6b5cff); }
.a2 { background: linear-gradient(135deg, #34d399, #0ea5e9); }
.a3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.pic {
  grid-column: 2;
  height: calc(var(--pt) * 190);
  border-radius: calc(var(--pt) * 16);
}

.p1 { background: linear-gradient(135deg, #fbcfe8, #c4b5fd); }
.p2 { background: linear-gradient(160deg, #a7f3d0, #34d399 50%, #065f46); }
.p3 { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.p4 { background: linear-gradient(135deg, #bfdbfe, #6366f1); }

/* Plays the example: the feed scrolls like a recording. */
.video.playing .feed {
  animation: feed-scroll 9s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

@keyframes feed-scroll {
  0%, 12% { transform: translateY(0); }
  40%, 52% { transform: translateY(calc(var(--pt) * -300)); }
  80%, 92% { transform: translateY(calc(var(--pt) * -620)); }
  100% { transform: translateY(0); }
}

/* MARK: Backgrounds (the app's colour blends) */

.bg-blend {
  background:
    radial-gradient(60% 60% at 15% 20%, #7a5eef 0%, transparent 70%),
    radial-gradient(60% 60% at 85% 15%, #598bf6 0%, transparent 70%),
    radial-gradient(70% 70% at 20% 90%, #d67cff 0%, transparent 70%),
    radial-gradient(70% 70% at 90% 85%, #f38b58 0%, transparent 70%),
    #9a7cf0;
}

.bg-sunset {
  background:
    radial-gradient(70% 50% at 20% 15%, #ffd29d 0%, transparent 70%),
    radial-gradient(80% 60% at 80% 90%, #ff5f9e 0%, transparent 70%),
    #ff8a80;
}

.bg-sea {
  background:
    radial-gradient(60% 80% at 10% 20%, #4fe0d8 0%, transparent 70%),
    radial-gradient(60% 80% at 90% 80%, #5b6cf6 0%, transparent 70%),
    #5aa8f0;
}

/* MARK: Hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(48px, 9vw, 120px) var(--gutter) clamp(56px, 8vw, 110px);
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

.hero-copy {
  max-width: 560px;
  justify-self: end;
}

h1 {
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 96;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--muted-on-night);
}

.hero-actions {
  margin-top: 36px;
}

.fine {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted-on-night);
}

.hero-stage {
  position: relative;
  justify-self: start;
  width: min(460px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

/* The finished picture's background, blooming in behind the phone. */
.bloom {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background:
    radial-gradient(60% 60% at 15% 20%, #7a5eef 0%, transparent 70%),
    radial-gradient(60% 60% at 85% 15%, #598bf6 0%, transparent 70%),
    radial-gradient(70% 70% at 20% 90%, #d67cff 0%, transparent 70%),
    radial-gradient(70% 70% at 90% 85%, #f38b58 0%, transparent 70%),
    #9a7cf0;
  box-shadow: 0 40px 120px -30px rgba(163, 92, 255, 0.55);
  animation: bloom 0.9s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-phone {
  position: relative;
  height: 82%;
  animation: rise 0.6s 0.1s ease-out both;
}

.hero-phone .bezel {
  animation: frame-on 0.7s 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Before the frame: a plain screenshot, square corners. */
.hero-phone .screen {
  animation: round 0.7s 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-phone .sb.raw {
  animation: wipe-out 0.45s 1.75s ease-in both;
}

.hero-phone .sb.clean {
  animation: wipe-in 0.45s 1.95s ease-out both;
}

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

@keyframes bloom {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: none; }
}

@keyframes frame-on {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}

@keyframes round {
  from { border-radius: 0; }
  to { border-radius: 13.4% / 5.9%; }
}

@keyframes wipe-out {
  to { opacity: 0; filter: blur(4px); }
}

@keyframes wipe-in {
  from { opacity: 0; transform: translateY(-30%); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bloom,
  .hero-phone,
  .hero-phone .bezel,
  .hero-phone .screen,
  .hero-phone .sb.clean {
    animation: none;
  }

  .hero-phone .sb.raw {
    animation: none;
    opacity: 0;
  }

  .video.playing .feed {
    animation-duration: 0s;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-copy {
    justify-self: start;
  }

  .hero-stage {
    justify-self: center;
    width: min(380px, 100%);
  }
}

/* MARK: Sections */

section:not(.hero) {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}

section > h2,
.video-copy h2 {
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-lead {
  max-width: var(--wrap);
  margin: 18px auto 0;
  color: var(--muted);
}

.section-lead,
.video-copy p {
  font-size: 19px;
}

/* MARK: Sizes */

.outputs {
  max-width: var(--wrap);
  margin: 48px auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  --h: clamp(200px, 24vw, 300px);
}

.out {
  margin: 0;
}

.out .canvas {
  height: var(--h);
}

.out-square .canvas { aspect-ratio: 1; }
.out-tall .canvas { aspect-ratio: 9 / 16; }
.out-wide .canvas { aspect-ratio: 16 / 9; }

.canvas {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(23, 19, 31, 0.45);
}

.canvas .phone {
  height: 80%;
}

.out figcaption {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}

.out figcaption b {
  color: var(--ink);
  margin-right: 6px;
}

@media (max-width: 860px) {
  .outputs {
    flex-direction: column;
    align-items: stretch;
  }

  .out .canvas {
    height: auto;
    width: 100%;
  }

  .out-tall .canvas {
    width: 62%;
    margin: 0 auto;
  }
}

/* MARK: How it works (a real sequence, so it is numbered) */

.how {
  background: #fff;
}

.steps {
  max-width: var(--wrap);
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps h3 {
  margin-top: 16px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* MARK: Features */

.feature-list {
  max-width: var(--wrap);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}

.feature-list div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.feature-list dt {
  font-weight: 700;
  font-size: 20px;
}

.feature-list dd {
  margin: 6px 0 0;
  max-width: 34em;
  color: var(--muted);
}

@media (max-width: 760px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* MARK: Video */

.video {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
}

.video-copy h2 {
  margin: 0;
}

.video-copy p {
  margin-top: 18px;
  max-width: 30em;
  color: var(--muted);
}

.play {
  margin-top: 28px;
}

.play .i-pause,
.video.playing .play .i-play {
  display: none;
}

.video.playing .play .i-pause {
  display: inline;
}

.video-stage .canvas {
  aspect-ratio: 1;
  max-width: 460px;
  margin-left: auto;
}

@media (max-width: 860px) {
  .video {
    grid-template-columns: 1fr;
  }

  .video-stage .canvas {
    margin: 0 auto;
  }
}

/* MARK: Pricing */

.pricing {
  background: var(--night);
  color: #fff;
}

.plans {
  max-width: var(--wrap);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.plan {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--night-2);
}

.plan h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.plan p {
  margin-top: 12px;
  color: var(--muted-on-night);
}

.plan-credits {
  position: relative;
  background:
    linear-gradient(var(--night-2), var(--night-2)) padding-box,
    var(--brand) border-box;
  border: 2px solid transparent;
}

.packs {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 17px;
}

.packs th {
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted-on-night);
  padding-bottom: 8px;
}

.packs td {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.bonus {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* MARK: Questions */

.faq h2 {
  margin-bottom: 32px;
}

.faq details {
  max-width: var(--wrap);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 44em;
  padding-bottom: 22px;
  color: var(--muted);
}

/* MARK: Closing call */

.cta {
  text-align: center;
  background: #fff;
}

.cta h2 {
  max-width: none;
}

.cta p {
  margin: 14px 0 32px;
  color: var(--muted);
}

/* MARK: Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 36px var(--gutter);
  background: var(--night);
  color: #fff;
  font-size: 15px;
}

.foot nav {
  display: flex;
  gap: 24px;
}

.foot nav a {
  color: var(--muted-on-night);
  text-decoration: none;
}

.foot nav a:hover {
  color: #fff;
}

.foot p {
  margin-left: auto;
  color: var(--muted-on-night);
}
