/* hidara website. Light paper, ink type, the app's own violet-to-cyan as the one color. */

:root {
  --paper: #f6f6f9;
  --paper-2: #ececf2;
  --card: #ffffff;
  --ink: #0e0c1d;
  --ink-2: #4b4960;
  --ink-3: #807e93;
  --line: #e1e0ea;
  --violet: #5b3df5;
  --cyan: #2fd3e6;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --style-accent: #8a6cff;
  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 750;
}

h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2.5px solid var(--violet);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background-color 160ms;
}
.btn:active {
  transform: scale(0.97);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover {
  background: #2a2640;
}
.btn-line {
  border: 1.5px solid var(--line);
  background: var(--card);
}
.btn-line:hover {
  border-color: var(--ink-3);
}
.btn-small {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
}
.text-link {
  color: var(--violet);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- nav */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 7px 7px 7px 18px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 30px -20px rgb(14 12 29 / 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.mark {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 84;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark .dot {
  fill: currentColor;
  stroke: none;
}
.nav nav {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 550;
}
.nav nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.nav nav a:hover {
  color: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: 100vh;
  padding: 130px clamp(20px, 5vw, 72px) 70px;
}
.hero-mark {
  position: relative;
  width: 76px;
  height: 76px;
}
.hero-mark svg {
  position: relative;
  width: 76px;
  height: 76px;
  overflow: visible;
  fill: none;
  stroke: url(#ink);
  stroke-width: 84;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The h writes itself: up the stem, over the shoulder, and its note lands */
.hero-mark .inner {
  stroke-dasharray: 556;
  stroke-dashoffset: 556;
  animation: draw 520ms var(--ease) 150ms forwards;
}
.hero-mark .outer {
  stroke-dasharray: 582;
  stroke-dashoffset: 582;
  animation: draw 620ms var(--ease) 480ms forwards;
}
.hero-mark .dot {
  fill: url(#ink);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 460ms cubic-bezier(0.3, 1.6, 0.5, 1) 980ms both;
}
.hero-mark .ping {
  position: absolute;
  left: 67.1%;
  top: 86.2%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 1.5px solid var(--violet);
  border-radius: 50%;
  opacity: 0;
  animation: ping 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) 1s infinite;
}
.hero-mark .ping + .ping {
  border-color: var(--cyan);
  animation-delay: 2.2s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pop {
  from {
    transform: scale(0);
  }
}
@keyframes ping {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(7);
  }
}

.wordmark {
  margin-top: 28px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: clamp(64px, 8vw, 124px);
  letter-spacing: -0.065em;
  line-height: 0.92;
  animation: rise 900ms var(--ease) 200ms both;
}
.lead {
  margin-top: 22px;
  max-width: 21ch;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.25;
  font-weight: 550;
  letter-spacing: -0.015em;
  animation: rise 900ms var(--ease) 320ms both;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 30px;
}
.hero .cta {
  animation: rise 900ms var(--ease) 440ms both;
}
.meta {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 14.5px;
}
.stats {
  display: flex;
  gap: clamp(24px, 4vw, 54px);
  margin: 44px 0 0;
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
}
.stats [hidden] {
  display: none;
}
.stats dt {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats dd {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* A laptop drawn in CSS, so the screenshot stays crisp at any size */
.laptop {
  margin: 0;
  perspective: 1600px;
  animation: laptop-in 1200ms var(--ease) 260ms both;
}
.lid {
  padding: 2.2% 2.2% 2.8%;
  border-radius: 22px 22px 6px 6px;
  background: linear-gradient(#26232f, #121118);
  box-shadow:
    0 0 0 1.5px #3b3846 inset,
    0 50px 90px -40px rgb(14 12 29 / 0.55);
}
.lid img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.deck {
  height: 16px;
  margin: 0 -5%;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(#d9d8e0, #a9a8b5);
  box-shadow: 0 30px 50px -28px rgb(14 12 29 / 0.6);
  position: relative;
}
.deck::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: #b9b8c4;
}
@keyframes laptop-in {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
  }
}

/* ---------------------------------------------------------------- shared section bits */

section {
  padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 72px);
}
.section-head {
  max-width: 900px;
}
.section-head p {
  margin-top: 22px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 19px;
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 900ms var(--ease),
    transform 900ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- styles (the dark band) */

.styles {
  position: relative;
  margin: 0 clamp(8px, 1.5vw, 20px);
  padding-bottom: clamp(32px, 5vw, 72px);
  border-radius: 40px;
  background: #0c0b14;
  color: #f4f2fb;
  overflow: hidden;
  isolation: isolate;
}
.styles::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto;
  height: 80%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--style-accent) 45%, transparent), transparent);
  transition: background 900ms;
  filter: blur(40px);
}
.styles .section-head p {
  color: #b9b6c9;
}
.style-stage {
  position: relative;
  margin-top: 56px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08),
    0 40px 100px -40px color-mix(in oklab, var(--style-accent) 60%, black);
  transition: box-shadow 900ms;
  aspect-ratio: 16 / 10;
}
.style-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 700ms var(--ease);
}
.style-stage [data-style-next] {
  opacity: 0;
}
.style-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.style-picker button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 14px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.03);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 200ms,
    border-color 200ms;
}
.style-picker button:hover {
  background: rgb(255 255 255 / 0.07);
}
.style-picker button[aria-selected='true'] {
  border-color: var(--style-accent);
  background: color-mix(in oklab, var(--style-accent) 16%, transparent);
}
.style-picker .name {
  font-size: 22px;
  line-height: 1.1;
}
.style-picker .what {
  color: #a19eb3;
  font-size: 13.5px;
  line-height: 1.35;
}

/* ---------------------------------------------------------------- sound */

.sound {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
}
.sound-copy p {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 19px;
  max-width: 48ch;
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.presets button {
  height: 42px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 180ms,
    color 180ms,
    border-color 180ms;
}
.presets button:hover {
  border-color: var(--ink-3);
}
.presets button[aria-checked='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.eq-card {
  padding: 36px 32px 24px;
  border-radius: var(--radius);
  background: #0c0b14;
  box-shadow: 0 40px 80px -40px rgb(14 12 29 / 0.6);
}
.eq {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
  height: 260px;
  align-items: end;
}
.eq span {
  height: 50%;
  border-radius: 999px;
  background: var(--grad);
  transition: height 700ms var(--ease);
}
.eq-labels {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
  margin-top: 14px;
  color: #8d8a9f;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- features */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 56px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.tile p {
  color: var(--ink-2);
  font-size: 15.5px;
}
.tile-wide {
  grid-column: span 2;
}
.tile-tall {
  grid-row: span 2;
}
.tile-full {
  grid-column: 1 / -1;
}
.tile-dark {
  border-color: transparent;
  background: #0c0b14;
  color: #f4f2fb;
}
.tile-dark p {
  color: #b9b6c9;
}
.tile img {
  margin-top: auto;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.chips span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 14px;
  font-weight: 600;
}
.chips.small span {
  padding: 6px 12px;
  font-size: 13px;
}
.link-demo {
  margin-top: auto;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--violet);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.lyric-demo {
  margin-top: auto;
  padding-top: 30px;
}
.lyric-demo .line {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #f4f2fb;
}
.lyric-demo .line span {
  background: linear-gradient(90deg, #fff 50%, rgb(255 255 255 / 0.35) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fill 2.4s ease-in-out infinite;
}
.lyric-demo .sub {
  margin-top: 10px;
  color: #8d8a9f;
  font-size: 16px;
}
@keyframes fill {
  0%,
  15% {
    background-position: 100% 0;
  }
  55%,
  100% {
    background-position: 0 0;
  }
}
.wave {
  width: 100%;
  margin-top: auto;
  fill: none;
  stroke: url(#ink);
  stroke: var(--violet);
  stroke-width: 3;
  stroke-linecap: round;
}
.discord {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding: 12px;
  border-radius: 14px;
  background: #1e1f22;
  color: #dbdee1;
  font-size: 13px;
}
.discord img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
}
.discord b {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.discord span {
  display: block;
  line-height: 1.35;
}

/* ---------------------------------------------------------------- maker */

.maker {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
}
.maker img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 50px 90px -50px rgb(14 12 29 / 0.7);
}
.maker-copy p {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 19px;
  max-width: 44ch;
}
.maker-copy .island {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
}
.island svg {
  width: 30px;
  flex: none;
  fill: color-mix(in oklab, var(--violet) 14%, transparent);
  stroke: var(--violet);
  stroke-width: 3;
  stroke-linejoin: round;
}
.island strong {
  color: var(--ink);
}
.maker-copy .maker-name {
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.who {
  display: inline-grid;
  justify-items: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--violet);
  font: inherit;
  cursor: pointer;
}
.who span {
  grid-area: 1 / 1;
  transition:
    opacity 260ms var(--ease),
    transform 260ms var(--ease),
    filter 260ms;
}
.who span + span {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(2px);
  white-space: nowrap;
}
.who:hover span:first-child,
.who:focus-visible span:first-child,
.who.full span:first-child {
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(2px);
}
.who:hover span + span,
.who:focus-visible span + span,
.who.full span + span {
  opacity: 1;
  transform: none;
  filter: none;
}
.maker .cta {
  margin-top: 30px;
}

/* ---------------------------------------------------------------- download */

.download {
  text-align: center;
}
.dl-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 48px auto 0;
  text-align: left;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.dl-card.quiet {
  background: transparent;
}
.dl-card h3 {
  font-size: 26px;
}
.dl-card p {
  color: var(--ink-2);
}
.dl-card .muted {
  color: var(--ink-3);
  font-size: 14.5px;
}
.dl-card .cta {
  margin-top: auto;
  padding-top: 18px;
}
.note {
  max-width: 64ch;
  margin: 26px auto 0;
  color: var(--ink-3);
  font-size: 14.5px;
}

/* ---------------------------------------------------------------- faq */

.faq {
  max-width: 860px;
  margin: 0 auto;
}
.faq h2 {
  margin-bottom: 30px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--ink-3);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  transition: transform 260ms var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 24px;
  color: var(--ink-2);
  max-width: 64ch;
}

/* ---------------------------------------------------------------- footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  padding: 40px clamp(20px, 5vw, 72px) 50px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}
.foot-links {
  display: flex;
  gap: 22px;
}
.foot a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.foot a:hover {
  text-decoration: underline;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.fine {
  width: 100%;
  color: var(--ink-3);
  font-size: 13.5px;
}

/* ---------------------------------------------------------------- download page */

.dl-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 120px 20px 60px;
  text-align: center;
}
.dl-page .hero-mark {
  margin: 0 auto;
}
.dl-page h1 {
  margin-top: 34px;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 750;
}
.dl-page .status {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 18px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 44px auto 0;
  text-align: left;
}
.steps div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 15px;
}
.steps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
}
.again {
  margin-top: 26px;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 980px) {
  .hero,
  .sound,
  .maker {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 110px;
    min-height: 0;
  }
  .style-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .dl-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .nav nav {
    display: none;
  }
  .nav {
    gap: 14px;
  }
  .style-picker {
    grid-template-columns: 1fr 1fr;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .tile-wide {
    grid-column: auto;
  }
  .tile-tall {
    grid-row: auto;
  }
  .stats {
    gap: 22px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .styles {
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-mark .inner,
  .hero-mark .outer {
    stroke-dashoffset: 0;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
