/* Rhyme Notes landing page. Colors and font follow the app:
   ui/theme/Color.kt (black surfaces, green CTA) and shared DefaultPalette (rhyme colors). */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/poppins-regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/poppins-medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-semibold.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/poppins-bold.woff") format("woff"); }

:root {
  --bg: #000000;
  --surface: #0E0E0E;
  --card: #1A1A1A;
  --line: #2D2D2D;
  --text: #F8FAFC;
  --text-2: #E2E8F0;
  --muted: #94A3B8;
  --green: #4CAF50;
  --green-hi: #6ABF4B;
  --indigo: #818CF8;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
  --sans: "Poppins", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Faint film grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
}
.brand img { border-radius: 9px; }
.brand-sm { font-size: 15px; }
.brand-sm img { border-radius: 6px; }
.top-cta {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-2);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s, color .2s;
}
.top-cta:hover { border-color: var(--green); color: var(--text); }

/* Hero */
.hero {
  display: grid;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 72px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; gap: 32px; padding-top: 56px; padding-bottom: 96px; }
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-hi);
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.03em;
  max-width: 14ch;
}
.lede {
  margin-top: 22px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--muted);
  max-width: 44ch;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  scroll-margin-top: 24px;
}
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  padding: 10px 22px 11px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, background .2s;
}
.store:first-child { background: var(--green); border-color: var(--green); color: #04110A; }
.store:hover { transform: translateY(-2px); border-color: var(--green-hi); }
.store:first-child:hover { background: var(--green-hi); }
.store-k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}
.store-n { font-size: 18px; font-weight: 600; line-height: 1.25; }
.promise {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.promise::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

/* Phones */
.phone {
  margin: 0;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid #262626;
  background: #000;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 0 6px #0B0B0B, 0 0 0 7px #222;
}
.hero-phones {
  position: relative;
  height: 560px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}
.hero-phones .glow {
  position: absolute;
  inset: 10% 5% 0;
  background: radial-gradient(closest-side, rgba(76, 175, 80, .28), transparent 70%),
              radial-gradient(closest-side at 70% 70%, rgba(129, 140, 248, .22), transparent 70%);
  filter: blur(20px);
}
.phone-front, .phone-back { position: absolute; width: 240px; }
.phone-front { right: 6%; top: 0; transform: rotate(3deg); z-index: 2; }
.phone-back { left: 4%; top: 48px; transform: rotate(-7deg); opacity: .85; }
@media (max-width: 480px) {
  .hero-phones { height: 440px; }
  .phone-front, .phone-back { width: 188px; }
  .phone { border-radius: 26px; }
}

/* Painted bars */
.bars-band {
  background: var(--surface);
  border-top: 1px solid #161616;
  border-bottom: 1px solid #161616;
  padding: 72px 0 80px;
}
.bars {
  --lh: 1.75em;
  margin-top: 28px;
  font-size: clamp(1.25rem, 3.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: var(--lh);
  color: var(--text-2);
  /* ruled notebook lines, one per text line */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--lh) - 1px),
    rgba(255, 255, 255, .07) calc(var(--lh) - 1px) var(--lh)
  );
  padding-left: .55em;
  border-left: 2px solid rgba(255, 105, 180, .35);
}
.bars mark {
  color: #050505;
  background: linear-gradient(var(--c), var(--c)) no-repeat 0 55% / 100% 1.15em;
  border-radius: .1em;
  padding: 0 .08em;
  margin: 0 -.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* With JS the colors paint in once the bars scroll into view; without it they show painted. */
.js .bars mark { color: var(--c); background-size: 0% 1.15em; }
.js .bars.in mark {
  animation: paint .5s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--d);
}
@keyframes paint {
  to { background-size: 100% 1.15em; color: #050505; }
}
.bars-note {
  margin-top: 28px;
  max-width: 58ch;
  color: var(--muted);
}

/* Features */
.features { padding-top: 96px; }
.grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  padding: 26px 24px 28px;
  background: var(--card);
  border: 1px solid #222;
  border-radius: 18px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: #333; transform: translateY(-2px); }
.card .dot {
  display: block;
  width: 26px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Screenshot strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 3vw, 32px);
  padding-top: 96px;
  max-width: calc(860px + 2 * var(--gutter));
}
.strip .phone:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 480px) { .strip .phone { border-radius: 18px; box-shadow: 0 0 0 3px #0B0B0B, 0 0 0 4px #222; } }

/* Languages */
.langs { padding-top: 96px; padding-bottom: 96px; text-align: center; }
.langs ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}
.langs li {
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  padding: 4px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.langs p { margin-top: 20px; color: var(--muted); }

/* Footer */
.foot {
  display: grid;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 48px;
  border-top: 1px solid #161616;
  font-size: 14px;
  color: var(--muted);
}
.foot .brand { color: var(--text); }
.foot div p { margin-top: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot nav a { text-decoration: none; transition: color .2s; }
.foot nav a:hover { color: var(--text); }
.copy { font-family: var(--mono); font-size: 12px; }
@media (min-width: 820px) {
  .foot { grid-template-columns: 1fr auto; align-items: start; }
  .copy { grid-column: 1 / -1; }
}

/* Page-load entrance */
.hero-copy > *, .hero-phones {
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-phones { animation-delay: .2s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
}

/* 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.notfound .label { margin-top: 24px; }

/* Impressum */
.narrow { max-width: calc(720px + 2 * var(--gutter)); }
.legal { padding-top: 40px; padding-bottom: 96px; }
.legal h1 { margin-top: 12px; }
.legal section { margin-top: 40px; }
.legal h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.legal p { color: var(--text-2); }
.legal a { color: var(--indigo); text-underline-offset: 3px; }
.legal .back { margin-top: 56px; }
