/* =====================================================
   AchieveZone — styles.css
   System font stack, no external font loads.
   ===================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #fafafa;
  --white: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --radius: 12px;
  --radius-full: 9999px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   MASTHEAD
   ===================================================== */

.masthead {
  padding: 72px 0 56px;
  text-align: center;
}

.masthead-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wordmark {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =====================================================
   SECTION HEADINGS
   ===================================================== */

main {
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-heading.text-center {
  text-align: center;
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}

/* =====================================================
   APP CARDS
   ===================================================== */

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 600px) {
  .app-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 680px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.app-card--compact {
  flex-direction: column;
}

.app-icon-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  display: block;
}

.app-icon-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

.app-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.app-name-sub {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.app-tagline {
  font-size: 0.95rem;
  font-weight: 600;
}

.app-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 2px;
  margin-bottom: 8px;
}

/* =====================================================
   STORE BUTTONS
   ===================================================== */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-apple {
  background: #0f172a;
  color: #fff;
}

.btn-apple:hover {
  background: #1e293b;
}

.btn-google {
  background: var(--white);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-google:hover {
  background: #f8fafc;
}

.btn-store--icon {
  padding: 10px 14px;
}

.btn-store--disabled {
  background: #94a3b8;
  color: #fff;
  opacity: 0.65;
  cursor: not-allowed;
}

.store-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-apple .store-icon,
.btn-store--disabled .store-icon {
  fill: #fff;
}

.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: #fffbeb;
  color: #92400e;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* =====================================================
   CONTACT FORM
   ===================================================== */

.contact-section {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

@media (max-width: 560px) {
  .contact-section {
    padding: 32px 20px;
  }
}

.contact-section .section-heading {
  margin-bottom: 32px;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.required {
  color: #ef4444;
}

.form-input {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  background: var(--white);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1em;
}

.form-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.btn-submit {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: #0f172a;
  border: none;
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 4px;
}

.btn-submit:hover {
  background: #1e293b;
}

.btn-submit:active {
  background: #0f172a;
}

.form-success {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #166534;
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-company {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

@media (min-width: 600px) {
  .footer-links {
    align-items: flex-end;
  }
}

.footer-links nav {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-muted);
}
