/* ============================================================
   Tawle — Marketing site stylesheet
   Self-contained, no build step. By TechFox.
   ============================================================ */

:root {
  /* Brand palette — pulled from the Tawle Laravel app (terracotta on warm sand) */
  --brand:      #C4541A;
  --brand-dark: #A8410F;
  --brand-light:#E8784A;
  --brand-pale: #FCEFE7;
  --brand-glow: rgba(196,84,26,.5);
  --gold:       #D98E2B;
  --gold-dark:  #B5731C;
  --espresso:   #241712;

  /* Aliases keep the rest of the stylesheet working while re-themed to brand */
  --teal-900: var(--espresso);
  --teal-700: var(--brand-dark);
  --teal-600: var(--brand);
  --teal-500: var(--brand-light);
  --teal-50:  var(--brand-pale);
  --amber:    var(--gold);
  --amber-dark:var(--gold-dark);

  --ink:      #1F1F39;
  --ink-soft: #3A3A50;
  --muted:    #6E7191;
  --line:     #ECE6DC;
  --surface:  #ffffff;
  --soft:     #FAF6F0;
  --soft-2:   #F2ECE2;
  --display:  Georgia, 'Times New Roman', serif;

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 1px 2px rgba(15,23,42,.04), 0 12px 32px -12px rgba(15,23,42,.18);
  --shadow-sm:0 1px 2px rgba(15,23,42,.06), 0 4px 14px -8px rgba(15,23,42,.16);
  --maxw:     1140px;
  --font:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Global keyboard focus — accessibility */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: inherit;
}
.nav-toggle:focus-visible,
.brand:focus-visible {
  outline-offset: 4px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
a  { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-600); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-dark); margin-bottom: .8rem;
}

.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section--ink { background: var(--teal-900); color: #cbd5e1; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.075rem; }

.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal-600); color: #fff; box-shadow: 0 8px 20px -8px var(--brand-glow); }
.btn--primary:hover { background: var(--teal-700); color: #fff; }
.btn--amber { background: var(--amber); color: #3b2400; box-shadow: 0 8px 20px -8px rgba(217,142,43,.7); }
.btn--amber:hover { background: var(--amber-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-700); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn--lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }
.btn.is-active { box-shadow: 0 0 0 3px rgba(196,84,26,.25); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--ink); letter-spacing: -.01em; }
.brand .brand-text { display: inline-flex; align-items: baseline; }
.brand:hover { color: var(--ink); }
.brand .dot-accent { color: var(--brand); }
.brand .logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px -6px var(--brand-glow);
}
.brand .logo-mark svg { width: 21px; height: 21px; }
.site-footer .brand .logo-mark { box-shadow: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 500; padding: .5rem .85rem; border-radius: 8px; white-space: nowrap; }
.nav-links a:hover { color: var(--teal-700); background: var(--teal-50); }
.nav-links a.is-active { color: var(--teal-700); background: var(--teal-50); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(20,184,166,.16), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(245,158,11,.10), transparent 55%),
    var(--surface);
  padding: 80px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--teal-600); }
.hero .lead { max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.hero-note svg { color: var(--teal-600); flex: none; }

/* Phone mockup */
.mockup { display: flex; justify-content: center; }
.phone {
  width: 290px; background: #0b1220; border-radius: 38px; padding: 12px;
  box-shadow: var(--shadow); position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 6px; background: #1e293b; border-radius: 99px;
}
.phone-screen { background: #fff; border-radius: 28px; overflow: hidden; }
.ps-top { background: linear-gradient(135deg, var(--teal-600), var(--teal-700)); color: #fff; padding: 30px 18px 18px; }
.ps-top small { opacity: .85; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.ps-top h4 { color: #fff; margin: .2rem 0 0; font-size: 1.15rem; }
.ps-tag { display: inline-block; margin-top: 8px; background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 99px; font-size: .72rem; }
.ps-item { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--soft-2); align-items: center; }
.ps-item .thumb { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg,#fde68a,#fbbf24); flex: none; }
.ps-item .thumb.green { background: linear-gradient(135deg,#a7f3d0,#34d399); }
.ps-item .thumb.rose { background: linear-gradient(135deg,#fecdd3,#fb7185); }
.ps-item .meta { flex: 1; min-width: 0; }
.ps-item .meta strong { font-size: .9rem; display: block; }
.ps-item .meta span { font-size: .78rem; color: var(--muted); }
.ps-item .price { font-weight: 700; font-size: .9rem; color: var(--teal-700); }
.ps-foot { padding: 14px 16px; }
.ps-foot .bar { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; font-size: .95rem; }
.ps-foot .cta { background: var(--teal-600); color: #fff; text-align: center; padding: 11px; border-radius: 12px; font-weight: 600; font-size: .9rem; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.trust .container { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: center; padding: 20px 24px; }
.trust span { color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.trust strong { color: var(--ink); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .96rem; }

/* channel cards */
.channel { text-align: left; }
.channel .badge { font-size: .72rem; font-weight: 700; color: var(--amber-dark); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--teal-900); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin-bottom: .3rem; }
.step p { font-size: .96rem; margin: 0; }

/* ---------- Feature list (features page) ---------- */
.feature-block { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.feature-block h3 { display: flex; align-items: center; gap: .6rem; }
.feature-block h3 .dot { width: 10px; height: 10px; border-radius: 99px; background: var(--teal-500); flex: none; }
.feature-block ul { margin: .8rem 0 0; padding: 0; list-style: none; }
.feature-block li { position: relative; padding: 7px 0 7px 28px; border-top: 1px solid var(--soft-2); color: var(--ink-soft); font-size: .96rem; }
.feature-block li:first-of-type { border-top: 0; }
.feature-block li::before {
  content: ""; position: absolute; left: 4px; top: 14px; width: 12px; height: 7px;
  border-left: 2px solid var(--teal-600); border-bottom: 2px solid var(--teal-600);
  transform: rotate(-45deg);
}
.feature-block li strong { color: var(--ink); }

/* ---------- Integrations ---------- */
.pill-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: .9rem; color: var(--ink-soft);
}
.section--ink .pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #e2e8f0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat .big { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--teal-600); letter-spacing: -.03em; }
.section--ink .stat .big { color: var(--teal-500); }
.stat .lbl { font-size: .9rem; color: var(--muted); }
.section--ink .stat .lbl { color: #94a3b8; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-700), var(--teal-900));
  border-radius: 24px; padding: 56px; text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7f0eb; max-width: 46ch; margin: 0 auto 24px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; font-size: 1.05rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { flex: none; transition: transform .25s ease; color: var(--teal-600); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-soft); }
.faq-a p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .info-item .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; flex: none; }
.contact-info .info-item h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-info .info-item p { margin: 0; font-size: .95rem; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: #e11d48; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--soft);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(20,184,166,.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field .err { color: #e11d48; font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #f43f5e; }
.field.invalid .err { display: block; }
.form-foot { font-size: .82rem; color: var(--muted); margin-top: 4px; }

.form-status { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .label { opacity: .85; }
.btn:disabled,
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--teal-900); color: #cbd5e1; padding: 72px 0 64px; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 640px; margin: 0 auto; color: #b5c4cc; font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--teal-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #94a3b8; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { color: #94a3b8; font-size: .92rem; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #94a3b8; font-size: .94rem; }
.footer-col a:hover { color: var(--teal-500); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; }
.footer-bottom a { color: #cbd5e1; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mockup { order: -1; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .site-header { overflow-x: clip; }
  .section { padding: 64px 0; }
  .page-hero { padding: 52px 0 44px; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px;
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
