/* mabudachi.com, direction C (Glass): the app's black, the system font (SF on Apple devices),
   one colour of light, morning blue, and the three ideas on glass cards. */
:root {
  --page: #000000;
  --text: #F5F5F7;
  --soft: #A1A1A6;
  --faint: #86868B;
  --fine: #6E6E73;
  --blue: #9FB8FF;
  --toggle: #7E9CF5;
  --sys: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(22px, 6vw, 56px);
  --bar: 52px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

/* Text sizes are in rem, so they follow the reader's own text size.
   1rem is 17px at the default size, so calc(Nrem / 17) is N px there.
   On iPhone the root follows the Text Size set in Settings (17px by default). */
html { font-size: 106.25%; background: var(--page); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--page);
  color: var(--text);
  font: 400 1rem/1.47 var(--sys);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* The lights spill past the page's sides; this clips them (the body can't: its overflow goes to the window). */
.page { position: relative; isolation: isolate; overflow-x: clip; }
.wrap {
  box-sizing: content-box; max-width: 980px; margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
a { color: inherit; touch-action: manipulation; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 2px; }
h1, h2 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
svg { display: block; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Morning blue light from the top of the screen. It stays put while the glass moves over it.
   Only blue: faint gold or rose on black reads as brown. */
.amb {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 75% at 50% -12%, rgba(159, 184, 255, 0.28) 0%, rgba(159, 184, 255, 0.17) 20%, rgba(159, 184, 255, 0.085) 40%, rgba(159, 184, 255, 0.025) 62%, rgba(159, 184, 255, 0) 82%);
}

/* Header: a glass bar that stays at the top; a soft shadow appears under it once the page moves. */
.bar {
  position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px);
  background: rgba(6, 8, 14, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none; opacity: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
@supports (animation-timeline: scroll()) {
  .bar::after { animation: edge linear both; animation-timeline: scroll(root); animation-range: 0px 32px; }
}
@keyframes edge { to { opacity: 1; } }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: var(--bar); }
.wordmark { font: 600 calc(19rem / 17)/1 var(--sys); letter-spacing: -0.03em; }
.status { font-size: calc(12rem / 17); letter-spacing: -0.01em; color: var(--soft); }

/* Hero */
.hero { padding-block: 88px 40px; text-align: center; }
.hero h1 { font-size: clamp(48rem / 17, 12.8vw, 104rem / 17); line-height: 1.05; letter-spacing: -0.015em; }
/* The light passes over "Only digital." once, as the page opens. */
.hero h1 em {
  display: inline-block; padding-bottom: 0.1em; margin-bottom: -0.1em; font-style: normal; color: transparent;
  background: linear-gradient(105deg, #FFFFFF 0%, #DCE5FF 24%, #A9C0FF 48%, #E4EBFF 70%, #FFFFFF 100%);
  background-size: 200% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 22px rgba(159, 184, 255, 0.32));
}
.lede {
  max-width: 32ch; margin: 24px auto 0;
  font-size: calc(21rem / 17); line-height: 1.38; letter-spacing: 0.011em; color: var(--soft);
}

/* The three ideas, each on a pane of glass */
.scene { padding-block: 8px; }
.sc {
  position: relative; overflow: hidden; padding: 44px 24px 40px; border-radius: 36px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}
.sc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(90% 55% at 18% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 62%);
}
.copy, .vis { position: relative; }
.sc h2 { font-size: clamp(32rem / 17, 8.6vw, 56rem / 17); line-height: 1.07; letter-spacing: -0.005em; }
.copy > p {
  max-width: 34ch; margin: 16px auto 0;
  font-size: calc(19rem / 17); line-height: 1.42; letter-spacing: 0.012em; color: var(--soft);
}
.vis { display: flex; justify-content: center; margin-top: 40px; }
.vis .ph { --pw: min(280px, 68vw); }

/* A whole iPhone showing the app: a picture of the app, not something to tap.
   Its sizes are shares of the phone (% and cqw), so it scales as one piece. */
.ph {
  --pw: 280px;
  position: relative; flex: none; width: var(--pw); max-width: 100%; aspect-ratio: 71.9 / 150; border-radius: 15.3% / 7.33%;
  background: linear-gradient(150deg, #6F788C 0%, #272B35 22%, #12141A 52%, #2B303C 80%, #616A7D 100%);
  box-shadow: inset 0 0 0 0.6px rgba(255, 255, 255, 0.2);
}
.ph::before { content: ""; position: absolute; inset: 0.53% 1.1%; border-radius: 14.5% / 6.87%; background: #000; }
.scr {
  position: absolute; inset: 1.47% 3.06%; overflow: hidden; border-radius: 13% / 6.04%; container-type: inline-size;
  text-align: left; letter-spacing: 0; color: #fff;
  background: radial-gradient(120% 55% at 50% 0%, rgba(159, 184, 255, 0.17), rgba(159, 184, 255, 0) 70%), #05060A;
}
.di { position: absolute; z-index: 4; top: 1.35%; left: 50%; width: 32%; height: 4.3%; translate: -50% 0; border-radius: 999px; background: #000; }
.sb {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 7%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 9.5% 0 12.5%; font: 600 4.3cqw/1 var(--sys); letter-spacing: -0.01em;
}
.sbi { width: 15.8cqw; height: 2.8cqw; color: #fff; }
.hi { position: absolute; z-index: 3; bottom: 0.95%; left: 50%; width: 35%; height: 0.6%; translate: -50% 0; border-radius: 9px; background: rgba(255, 255, 255, 0.6); }
.ct { position: absolute; top: 13.5%; left: 7.5%; right: 7.5%; bottom: 5.5%; display: flex; flex-direction: column; }
.lbl { font: 600 3.9cqw/1.2 var(--sys); color: #8E8E93; }
.q { margin-top: 2.6cqw; font: 700 8.2cqw/1.12 var(--sys); letter-spacing: -0.012em; color: #fff; text-wrap: balance; }
.rec { flex: none; display: grid; place-items: center; width: 18cqw; height: 18cqw; margin: auto auto 5cqw; border-radius: 50%; box-shadow: inset 0 0 0 1.1cqw rgba(255, 255, 255, 0.92); }
.rec i { width: 12.6cqw; height: 12.6cqw; border-radius: 50%; background: var(--blue); }
.wv { width: 100%; height: auto; margin-top: 10cqw; color: var(--blue); }
.qt { margin-top: 8cqw; font: 600 6.2cqw/1.3 var(--sys); letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
.pb { flex: none; margin: auto 0 5cqw; }
.scrub { height: 1.1cqw; overflow: hidden; border-radius: 1cqw; background: rgba(255, 255, 255, 0.18); }
.scrub i { display: block; width: 38%; height: 100%; background: var(--blue); }
.tm { display: flex; justify-content: space-between; margin-top: 2.4cqw; font: 500 3.6cqw/1 var(--sys); color: #8E8E93; font-variant-numeric: tabular-nums; }
.pbtn { display: flex; align-items: center; justify-content: center; gap: 2.2cqw; width: 18cqw; height: 18cqw; margin: 5cqw auto 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.pbtn i { width: 2.4cqw; height: 7cqw; border-radius: 0.8cqw; background: #fff; }
.pp { margin-top: 4cqw; padding: 0; list-style: none; }
.pp li { display: flex; align-items: center; gap: 3.6cqw; padding-block: 3.2cqw; border-bottom: 0.3cqw solid rgba(255, 255, 255, 0.1); font: 500 5.3cqw/1.2 var(--sys); color: var(--text); }
.pp li:last-child { border: 0; color: #8E8E93; }
.pp li span { flex: 1; }
.pp b { flex: none; display: grid; place-items: center; width: 11cqw; height: 11cqw; border-radius: 50%; background: linear-gradient(180deg, #5F5F65, #3B3B40); font: 600 4.3cqw/1 var(--sys); color: #fff; }
.pp li:last-child b { background: rgba(255, 255, 255, 0.12); color: #C7C7CC; }
.tg { position: relative; flex: none; width: 13.6cqw; height: 8.3cqw; border-radius: 9cqw; background: var(--toggle); }
.tg::after { content: ""; position: absolute; top: 0.75cqw; right: 0.75cqw; width: 6.8cqw; height: 6.8cqw; border-radius: 50%; background: #fff; box-shadow: 0 0.5cqw 1.5cqw rgba(0, 0, 0, 0.25); }

/* The end of the page: the app's name under a glass icon */
.close { padding-block: 120px 112px; text-align: center; }
.icon {
  --icon: 96px;
  display: grid; place-items: center; width: var(--icon); height: var(--icon); margin: 0 auto; border-radius: 22.37%; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 24px 48px -24px rgba(159, 184, 255, 0.35);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.icon span { font: 600 calc(var(--icon) * 0.56)/1 var(--sys); letter-spacing: -0.04em; translate: 0 -4%; }
.close-mark { margin-top: 28px; font: 600 clamp(32rem / 17, 8vw, 48rem / 17)/1.08 var(--sys); letter-spacing: -0.003em; }
.close-sub { margin-top: 8px; font-size: calc(21rem / 17); line-height: 1.38; letter-spacing: 0.011em; color: var(--faint); }

/* Footer */
.foot {
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: calc(12rem / 17); line-height: 1.33; letter-spacing: -0.01em; color: var(--faint);
}
.foot-in { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.foot p { margin-bottom: 8px; }
.foot a { color: #D2D2D7; text-decoration: none; }
.foot a:active { opacity: .6; }
.foot .legal { max-width: 72ch; margin-top: 12px; color: var(--fine); }

@media (min-width: 834px) {
  .hero { padding-block: 150px 64px; }
  .scene { padding-block: 10px; }
  .sc { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 64px; text-align: left; }
  .copy > p { margin-left: 0; }
  .vis { margin-top: 0; }
  .close { padding-block: 160px 140px; }
  .icon { --icon: 120px; }
}

/* Hover only where there is a real pointer, so a tap never leaves a link lit. */
@media (hover: hover) and (pointer: fine) {
  .foot a:hover { text-decoration: underline; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .9s var(--ease) both; }
  .hero > :nth-child(2) { animation-delay: .08s; }
  .hero h1 em { animation: sheen 2.8s var(--ease) .35s both; }
  /* Each card rises into place as it scrolls in, where the browser can tie it to the scroll. */
  @supports (animation-timeline: view()) {
    .sc { animation: arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 280px; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
@keyframes arrive { from { opacity: 0; translate: 0 40px; } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* For people who turn down transparency: solid fills instead of glass. */
@media (prefers-reduced-transparency: reduce) {
  .bar { background: #000; }
  .sc { background: #121317; }
  .bar, .sc, .icon { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
