/*
Theme Name: Handwriting Job
Theme URI: https://example.com/handwriting-job
Author: Lovable
Author URI: https://lovable.dev
Description: Vibrant single-page landing theme for a work-from-home handwriting job. Teal, emerald and coral palette with rich animations, plans, testimonials, FAQ and a Telegram CTA.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: handwriting-job
*/

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --coral: #f97362;
  --amber: #f59e0b;
  --success: #16a34a;
  --bg: #f7fbfa;
  --card: #ffffff;
  --border: #e3eceb;
  --fg: #143230;
  --muted: #5b7470;
  --radius: 1.5rem;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 800; line-height: 1.1; }

a { text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }

.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gradient-warm {
  background: linear-gradient(90deg, var(--coral), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-success { color: var(--success); }
.text-coral { color: var(--coral); }
.text-muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .9rem 1.8rem; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: transform .3s ease; color: #fff; border: none;
}
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(.95); }
.btn-cta { background: linear-gradient(120deg, var(--primary), var(--coral), var(--amber)); background-size: 200% 200%; animation: gradient-move 6s ease infinite; box-shadow: 0 14px 30px rgba(13,148,136,.35); }
.btn-primary { background: var(--primary); box-shadow: 0 8px 20px rgba(13,148,136,.25); }
.btn-light { background: #fff; color: var(--primary); box-shadow: 0 14px 30px rgba(0,0,0,.15); }
.btn-block { width: 100%; }
.pulse-ring { position: relative; }
.pulse-ring::after { content: ""; position: absolute; inset: 0; border-radius: 999px; box-shadow: 0 0 0 0 rgba(249,115,98,.6); animation: pulse-ring 2s infinite; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { border-radius: 999px; padding: .35rem 1rem; font-size: .85rem; font-weight: 600; }
.badge-primary { background: rgba(13,148,136,.12); color: var(--primary); }
.badge-coral { background: rgba(249,115,98,.15); color: var(--coral); }
.badge-amber { background: rgba(245,158,11,.2); color: #a45b00; }
.badge-success { background: rgba(22,163,74,.15); color: var(--success); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #e6f6f3, #fff5f2 70%); padding: 3.5rem 0 5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-top: 1.5rem; }
.hero .lead { font-size: 1.3rem; color: rgba(20,50,48,.8); margin-top: 1.25rem; }
.hero-img-wrap { max-width: 360px; margin: 0 auto; position: relative; }
.hero-img-wrap img { border-radius: 2rem; box-shadow: 0 25px 50px rgba(0,0,0,.18); border: 4px solid rgba(255,255,255,.7); }
.float-card { position: absolute; background: #fff; border-radius: 1.25rem; padding: .75rem 1.25rem; box-shadow: 0 12px 28px rgba(0,0,0,.12); animation: float 4s ease-in-out infinite; }
.float-card .label { font-size: .75rem; color: var(--muted); }
.float-card .value { font-size: 1.5rem; font-weight: 800; }
.float-tr { top: -12px; right: -12px; }
.float-bl { bottom: -16px; left: -12px; animation-delay: 1.5s; }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; animation: blob 12s ease-in-out infinite; }

/* Marquee */
.marquee { overflow: hidden; background: linear-gradient(120deg, var(--primary), var(--coral), var(--amber)); background-size: 200% 200%; animation: gradient-move 6s ease infinite; padding: .85rem 0; }
.marquee-track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; animation: marquee 22s linear infinite; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; }

/* Two col */
.two-col { display: grid; gap: 3rem; align-items: center; }
.img-card { max-width: 360px; margin: 0 auto; border-radius: 2rem; overflow: hidden; box-shadow: 0 20px 45px rgba(0,0,0,.12); }
.check-list { list-style: none; margin-top: 1.5rem; display: grid; gap: .75rem; }
.check-list li { display: flex; align-items: center; gap: .75rem; }
.check { display: inline-flex; height: 1.75rem; width: 1.75rem; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 999px; background: rgba(22,163,74,.15); color: var(--success); font-weight: 700; }

/* Headings */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }

/* Cards grid */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 12px 30px rgba(20,50,48,.06); transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(20,50,48,.12); }

/* Plans */
.plan { display: flex; flex-direction: column; height: 100%; position: relative; }
.plan.popular { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(249,115,98,.25), 0 20px 40px rgba(20,50,48,.12); }
.plan .tag { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; padding: .25rem 1rem; border-radius: 999px; }
.plan .price { font-size: 2.5rem; margin-top: .75rem; }
.plan ul { list-style: none; margin: 1.25rem 0; display: grid; gap: .6rem; font-size: .95rem; }
.plan .btn { margin-top: auto; }
.icon-box { display: inline-flex; height: 3.25rem; width: 3.25rem; align-items: center; justify-content: center; border-radius: 1rem; font-size: 1.6rem; background: linear-gradient(135deg, rgba(13,148,136,.15), rgba(249,115,98,.15)); }

/* Section bg */
.bg-soft { background: rgba(13,148,136,.05); }

/* Payment stats */
.stat-row { display: flex; gap: 1.25rem; margin-top: 1.75rem; }
.stat-row .card { flex: 1; }
.stat-row .value { font-size: 1.9rem; font-weight: 800; }

/* Testimonials */
.quote-mark { font-size: 3rem; color: rgba(249,115,98,.4); line-height: 1; }
.avatar { height: 2.75rem; width: 2.75rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.who { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; }

/* CTA countdown */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--primary), var(--coral), var(--amber)); background-size: 200% 200%; animation: gradient-move 6s ease infinite; color: #fff; text-align: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 1.5rem; }
.countdown { display: flex; gap: 1rem; justify-content: center; margin-top: 2.5rem; }
.count-box { background: rgba(255,255,255,.15); backdrop-filter: blur(6px); border-radius: 1rem; padding: 1rem 1.25rem; min-width: 80px; }
.count-box .num { font-size: 2.25rem; font-weight: 800; }
.count-box .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 1rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.25rem 1.5rem; box-shadow: 0 12px 30px rgba(20,50,48,.06); }
.faq-item summary { font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin-top: .75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .9rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Keyframes */
@keyframes gradient-move { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.1); } 66% { transform: translate(-20px,20px) scale(.95); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(249,115,98,.6); } 70% { box-shadow: 0 0 0 18px rgba(249,115,98,0); } 100% { box-shadow: 0 0 0 0 rgba(249,115,98,0); } }

/* Responsive */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; }
}
