:root {
  --blood-green: #0F9147;
  --blood-highlight: #F2FFF6;
  --bill-fill: #2E8256;
  --bill-frame: #B9F0D1;
  --badge-dark: #0B3D26;
  --accent-green: #2E9E4F;
  --text-dark: #1c1c1c;
  --text-muted: #555;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  line-height: 1.6;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 70px;
  text-align: center;
  overflow: hidden;
}

.drip-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  line-height: 0;
}

.drip-bar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  padding: 40px 20px 24px;
  max-width: 640px;
  margin: 0 auto;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.y-with-tm {
  position: relative;
}

.tm-badge {
  position: absolute;
  top: -2px;
  right: -20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blood-green);
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: "Nosifer", cursive;
  font-size: 2.1rem;
  color: var(--blood-green);
  margin: 20px 0 8px;
  line-height: 1.3;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 34px;
}

.cta {
  display: inline-block;
  background: var(--accent-green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(46, 158, 79, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(46, 158, 79, 0.45);
}

/* ---------- Info box / GET response ---------- */

.info-box {
  max-width: 640px;
  margin: 32px auto;
  padding: 20px 24px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
}

.info-box p {
  margin: 0;
}

/* Successful, real-country suggestion — a very light tint of the
   app's own green, with a matching subtle border. */
.info-box--success {
  background: #EAF7EF;
  border: 1px solid #BEE6CC;
  color: #1B5E32;
}

/* Invalid input (wrong param name, or more than one), unrecognized country, or rate-limited — light grey,
   neutral rather than alarming (these are common, expected cases,
   not something's actually broken). */
.info-box--error {
  background: #F2F2F2;
  border: 1px solid #D8D8D8;
  color: #555;
}

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

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.about h2 {
  text-align: center;
  font-size: 1.6rem;
  max-width: 700px;
  margin: 0 auto 24px;
}

.about > p {
  max-width: 680px;
  margin: 0 auto 18px;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin: 48px 0 20px;
}

.feature {
  text-align: center;
  padding: 0 8px;
}

.feature-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.feature p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Screenshots ---------- */

.screenshots {
  text-align: center;
  margin: 64px 0 20px;
}

.screenshots h2 {
  font-size: 1.6rem;
  margin-bottom: 32px;
}

.screenshot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.screenshot-row figure {
  margin: 0;
  max-width: 280px;
}

.screenshot-row img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  display: block;
  background: #eee;
  min-height: 400px;
}

/* Placeholder styling shown only if a screenshot file is missing */
.screenshot-row figure.missing img {
  visibility: hidden;
  position: relative;
}

.screenshot-row figure.missing {
  position: relative;
}

.screenshot-row figure.missing::before {
  content: "Screenshot coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: #f0f0f0;
  border-radius: 18px;
  color: #999;
  font-size: 0.9rem;
}

.screenshot-row figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Disclaimer ---------- */

.disclaimer {
  max-width: 620px;
  margin: 56px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #eee;
  padding-top: 24px;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 64px;
  padding: 48px 24px 40px;
  text-align: center;
  background: #fafafa;
  border-top: 1px solid #eee;
}

footer h2 {
  font-size: 1.4rem;
  margin: 0 0 24px;
}

.app-store-badge-link,
.play-badge-link {
  display: inline-block;
  vertical-align: middle;
  margin: 0 8px 12px;
}

.app-store-badge-link img,
.play-badge-link img {
  display: block;
  height: 50px;
  width: auto;
}

.app-store-badge-fallback,
.play-badge-fallback {
  display: inline-block;
  background: var(--badge-dark);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin: 0 8px 12px;
}

.footer-links {
  margin: 24px 0 6px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
  font-size: 0.9rem;
}

.footer-copy {
  color: #aaa;
  font-size: 0.8rem;
  margin: 0;
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }
}
