:root {
  color-scheme: dark;
  --ink: #f6f0e6;
  --muted: #c8bba5;
  --paper: #10100f;
  --panel: #201e1a;
  --line: rgba(246, 240, 230, 0.16);
  --gold: #d4a441;
  --gold-strong: #f0c15a;
  --green: #7ab86f;
  --blue: #7daee8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -12rem, rgba(212, 164, 65, 0.22), transparent 28rem),
    linear-gradient(135deg, #100f0e 0%, #1d1a16 52%, #0e0e0d 100%);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 15, 14, 0.94);
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  align-items: center;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img,
.hero-logo {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand small,
.eyebrow {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 1.35rem 1rem 2rem;
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0 1.25rem;
}

.hero-logo {
  width: clamp(5.75rem, 28vw, 9rem);
  height: clamp(5.75rem, 28vw, 9rem);
  object-fit: cover;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
h1 {
  margin: 0;
}

h1 {
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 12vw, 4.75rem);
  line-height: 0.92;
}

.install-panel,
.key-actions,
.email-actions {
  display: grid;
  gap: 0.85rem;
}

.install-panel {
  margin-bottom: 1rem;
}

.install-button {
  min-height: 3.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #10100f;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(246, 240, 230, 0.08);
}

.install-button[hidden],
.install-panel[hidden] {
  display: none;
}

.install-button.ready {
  background: var(--gold);
  color: #15120c;
}

.install-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
}

.install-steps {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
  background: rgba(246, 240, 230, 0.07);
}

.install-steps[hidden] {
  display: none;
}

.install-steps ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.4;
}

.install-steps li + li {
  margin-top: 0.35rem;
}

.copy-button {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0.85rem;
  background: rgba(16, 16, 15, 0.72);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.big-button {
  display: grid;
  gap: 0.35rem;
  min-height: 6.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.big-button span {
  font-size: clamp(1.35rem, 7vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}

.big-button small {
  color: rgba(21, 18, 12, 0.8);
  font-size: 0.96rem;
  font-weight: 800;
}

.big-button.tuner {
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: #15120c;
}

.big-button.lessons {
  background: linear-gradient(135deg, #f7ead3, #d7ba75);
  color: #15120c;
}

.big-button.chat {
  background: linear-gradient(135deg, #a9d7a1, var(--green));
  color: #10130e;
}

.email-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
}

.email-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 0.75rem;
  background: rgba(246, 240, 230, 0.08);
  color: var(--ink);
  font-weight: 850;
  text-align: center;
}

@media (min-width: 700px) {
  .home {
    padding-top: 2rem;
  }

  .key-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .big-button {
    align-content: space-between;
    min-height: 11rem;
  }
}
