/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f2937;
  background: #ffffff;
}

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

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand-name {
  font-weight: 600;
}

.nav a {
  margin-left: 20px;
  color: #374151;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top, #eef4ff, #ffffff 70%);
  padding: 64px 0 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.lead {
  color: #4b5563;
  max-width: 520px;
}

.cta-row {
  margin: 20px 0;
}

.fineprint {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-ghost {
  border: 1px solid #d1d5db;
  margin-left: 10px;
}

.btn-disabled {
  background: #e5e7eb;
  color: #9ca3af;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
}

.card-kicker {
  font-size: 0.75rem;
  color: #2563eb;
  font-weight: 600;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.card-subtitle {
  color: #6b7280;
  margin-bottom: 12px;
}

.store-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.google-play-badge {
  height: 48px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-muted {
  background: #f9fafb;
}

/* Apps */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.app-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
}

.app-card-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.placeholder-icon {
  width: 40px;
  height: 40px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.75rem;
}

.app-actions {
  margin-top: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Play card layout (prevents badge from exploding) --- */
.play-card{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:14px;
  background:#fff;
}

.play-app-icon{
  width:56px;
  height:56px;
  border-radius:14px;
  flex:0 0 auto;
  object-fit:cover;
}

.play-card-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.play-card-title{
  font-weight:700;
  font-size:14px;
  line-height:1.2;
}

.play-card-sub{
  font-size:13px;
  color:rgba(17,24,39,0.75);
  line-height:1.25;
}

.play-badge-link{
  display:inline-flex;
  align-items:center;
  width:max-content;
}

.play-badge{
  display:block;
  height:44px;      /* <— key: fixed height */
  width:auto;       /* maintain aspect ratio */
  max-width:180px;  /* <— key: stops huge badge */
}

@media (max-width: 880px){
  .hero-inner{ display:block; }
  .hero-card{ margin-top:18px; }
}

@media (max-width: 520px){
  .play-card{ gap:12px; }
  .play-badge{ height:40px; max-width:170px; }
}

/* --- Apps card actions: align Open page + Google Play badge --- */
.app-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.app-actions .btn{
  height: 44px;              /* match badge height */
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-actions .play-badge-link{
  display: inline-flex;
  align-items: center;
  height: 44px;
}

.app-actions .play-badge{
  height: 44px;
  width: auto;
  display: block;
  border-radius: 10px;
}

/* Mobile: stack cleanly */
@media (max-width: 520px){
  .app-actions{
    flex-direction: column;
    align-items: flex-start;
  }
  .app-actions .btn{
    width: 100%;
  }
  .app-actions .play-badge-link{
    width: 100%;
  }
  .app-actions .play-badge{
    height: 44px;
  }
}


/* Mobile */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}
