/* ========================================
   Taskutalkkari – Website Styles
   Accent: teal (#0D9488 / #14B8A6)
   ======================================== */

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

:root {
  --accent:        #0D9488;
  --accent-light:  #14B8A6;
  --accent-bg:     rgba(20, 184, 166, 0.10);
  --bg:            #F9FAFB;
  --card:          #FFFFFF;
  --border:        #E5E7EB;
  --text-primary:  #111827;
  --text-secondary:#6B7280;
  --text-muted:    #9CA3AF;
  --hero-dark:     #0F3330;
  --radius:        12px;
  --shadow:        0 2px 12px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HERO ──────────────────────────────── */

.hero {
  background: linear-gradient(145deg, #0a2e2b 0%, #0F3330 40%, #145550 100%);
  color: #fff;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(20,184,166,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(13,148,136,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  margin-bottom: 1.5rem;
}

.app-name {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.app-tagline {
  font-size: 1.15rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-top: 0.4rem;
  letter-spacing: 0.3px;
}

.app-desc {
  margin-top: 1.1rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── STORE BUTTONS ─────────────────────── */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.store-btn--google {
  background: #fff;
  color: #111827;
}

.store-btn--apple {
  background: #111827;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.store-btn--coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.store-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.65;
}

/* ── WAITLIST FORM ─────────────────────── */

.waitlist-container {
  margin-top: 2.5rem;
  text-align: center;
}

.waitlist-title {
  font-size: 0.95rem;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.waitlist-form {
  max-width: 420px;
  margin: 0 auto;
}

.waitlist-input-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
}

.waitlist-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.waitlist-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.waitlist-input:focus {
  border-color: var(--accent-light);
  background: rgba(0, 0, 0, 0.4);
}

.waitlist-btn {
  padding: 0.8rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.waitlist-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .waitlist-input-group {
    flex-direction: column;
  }
  .waitlist-btn {
    width: 100%;
  }
}

/* ── FEATURES ──────────────────────────── */

.features {
  padding: 4.5rem 1.5rem;
  background: var(--bg);
}

.features-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-icon {
  margin-bottom: 0.85rem;
  color: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.75;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── USP SECTION ───────────────────────── */

.usp-section {
  padding: 4rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--border);
}

.usp-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.usp-card {
  padding: 1rem;
}

.usp-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.usp-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.usp-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── PAGE HEADER (inner pages) ─────────── */

.page-header {
  background: linear-gradient(145deg, #0a2e2b 0%, #0F3330 100%);
  color: #fff;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.back-link:hover { text-decoration: underline; }

.page-header h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
}

.page-header p {
  margin-top: 0.4rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* ── PAGE MAIN ─────────────────────────── */

.page-main {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

/* ── FEEDBACK FORM ─────────────────────── */

.feedback-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

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

.optional { font-weight: 400; color: var(--text-muted); }
.required { color: #DC2626; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}

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

.submit-btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.submit-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* ── THANK YOU ─────────────────────────── */

.thank-you {
  display: flex;
  justify-content: center;
  align-items: center;
}

.thank-you-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 460px;
  width: 100%;
}

.thank-you-icon { font-size: 3rem; margin-bottom: 1rem; }
.thank-you-card h1 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.thank-you-card p { color: var(--text-secondary); }

/* ── PROSE (legal pages) ───────────────── */

.prose {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.5rem;
  box-shadow: var(--shadow);
}

.prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
}

.prose p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.prose ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.prose ul li { margin-bottom: 0.3rem; }

.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--accent-light); }

/* ── FOOTER ────────────────────────────── */

.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-copy { font-size: 0.82rem; }

/* ── DATA TABLE ────────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0 1.25rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  background: var(--bg);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.data-table td {
  color: var(--text-secondary);
}

.data-table tr:nth-child(even) td {
  background: #FAFAFA;
}

/* ── RESPONSIVE ────────────────────────── */

@media (max-width: 480px) {
  .feedback-form, .prose { padding: 1.25rem; }
  .store-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 200px; justify-content: center; }
}
