/* Landing page (index.html in every language). The privacy and support pages
   keep their own inline styles. Dark only, like the app's menus and its icon. */

:root {
  --bg: #0f0f11;
  --panel: #1a1a1d;
  --line: #2a2a2e;
  --text: #ececee;
  --muted: #9a9aa0;
  --gold: #f2bd3c;   /* the icon's gold and the app's star colour */
  --green: #34c759;  /* a correctly played note */
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", Helvetica, Arial, sans-serif;
}

a { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Top bar: name on the left, language menu on the right */
header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.langs { position: relative; font-size: .9rem; }
.langs summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--text); }
.langs svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.langs nav {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  z-index: 1;
  min-width: 9rem;
  padding: .4rem 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.langs nav a, .langs nav strong { display: block; padding: .4rem 1rem; white-space: nowrap; }
.langs nav a { color: var(--muted); text-decoration: none; }
.langs nav a:hover { color: var(--text); background: var(--line); }
.langs nav strong { color: var(--text); font-weight: 600; }

/* Hero */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero .icon { width: 112px; height: 112px; border-radius: 25px; margin: 0 auto 1.5rem; box-shadow: 0 8px 40px rgba(242, 189, 60, .25); }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -.02em; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin: 0 auto 2rem; }

/* Official store badges. The Google Play PNG has transparent padding built in
   (the badge is about 2/3 of the image height), so it is drawn taller and pulled
   in with negative margins to look the same height as the App Store badge. */
.stores { display: flex; flex-wrap: wrap; gap: 1.75rem 1rem; justify-content: center; align-items: center; }
.stores .appstore { height: 50px; width: auto; }
.stores .googleplay { height: 75px; width: auto; margin: -12.5px -10px; }
/* Until the Play release the badge has no link and a small label underneath. */
.soon { position: relative; }
.soon span {
  position: absolute;
  left: 50%;
  bottom: -1.4rem;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Screenshots: the iPhone is landscape-only during a session, so every capture is wide */
.shot { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.hero .shot { margin: 3rem auto 0; width: min(100%, 60rem); }

section { padding: 3.5rem 0; }
section > .wrap > h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); text-align: center; margin: 0 0 2.5rem; }

/* How it works: three steps, image and text side by side on wide screens */
.step { display: grid; gap: 1.5rem 3rem; align-items: center; margin-bottom: 3.5rem; }
.step h3 { font-size: 1.4rem; margin: 0 0 .5rem; }
.step p { color: var(--muted); margin: 0; }
.num { color: var(--gold); font-weight: 700; font-size: .95rem; letter-spacing: .08em; }
@media (min-width: 800px) {
  .step { grid-template-columns: 3fr 2fr; }
  .step:nth-of-type(even) .shot { order: 2; }
}

/* Features: three with a screenshot, then a list of smaller ones */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.card img { border-bottom: 1px solid var(--line); }
.card div { padding: 1.1rem 1.25rem 1.4rem; }
.card h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.more { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1rem 2rem; }
@media (min-width: 800px) { .more { grid-template-columns: repeat(2, 1fr); } }
.more li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.more li::before { content: "✓"; color: var(--green); font-weight: 700; position: absolute; left: 0; }
.more strong { color: var(--text); }

/* Closing call to action */
.cta { text-align: center; border-top: 1px solid var(--line); }
.cta h2 { margin-bottom: 1rem !important; }
.cta p { color: var(--muted); margin: 0 0 2rem; }

footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
footer a { color: var(--muted); }
footer nav a { margin-right: 1.25rem; }
