/* WorkWize — shared styles */
:root {
  --green: #3e6155;
  --green-dark: #2f4c42;
  --green-deep: #24382f;
  --green-tint: #e7ede9;
  --cream: #f6f4ee;
  --card: #ffffff;
  --ink: #1f2a26;
  --ink-soft: #4d5a55;
  --orange: #c9803e;
  --orange-tint: #f6e8d8;
  --red: #b03a2e;
  --red-tint: #f7e5e2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 42, 38, 0.05), 0 10px 28px rgba(31, 42, 38, 0.09);
  --shadow-lift: 0 2px 4px rgba(31, 42, 38, 0.06), 0 18px 44px rgba(31, 42, 38, 0.14);
  --border-soft: 1px solid rgba(31, 42, 38, 0.07);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 42, 38, 0.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-dark); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--green-dark); }
.nav-cta {
  background: var(--green); color: #fff !important; padding: 8px 16px;
  border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--green-dark); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 14px 28px; font-size: 1.05rem;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(31,42,38,0.2), 0 8px 20px rgba(62,97,85,0.35); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-light { background: #fff; color: var(--green-dark); box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.18); }
.btn-light:hover { transform: translateY(-1px); }
.badge-appstore img { height: 54px; width: auto; }
.badge-appstore { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.15s ease, filter 0.15s ease; }
.badge-appstore:hover { transform: translateY(-1px); filter: brightness(1.12); }

/* Hero */
.hero {
  background:
    radial-gradient(90rem 46rem at 82% -18%, rgba(240, 200, 150, 0.14), transparent 55%),
    radial-gradient(60rem 40rem at -12% 110%, rgba(36, 56, 47, 0.85), transparent 60%),
    linear-gradient(168deg, var(--green-dark) 0%, var(--green) 62%, #48705f 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding-top: 84px; padding-bottom: 84px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); font-weight: 800; line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.028em; }
.hero h1 em { font-style: normal; color: #f0c896; }
.hero p.lede { font-size: 1.16rem; line-height: 1.65; color: rgba(255,255,255,0.86); margin: 0 0 30px; max-width: 32em; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin: 0; letter-spacing: 0.01em; }

/* 3D device */
.hero-phone { perspective: 1600px; display: flex; justify-content: center; }
.hero-phone .device {
  width: min(310px, 74%);
  transform: rotateY(-16deg) rotateX(5deg) rotateZ(1.5deg);
  transform-style: preserve-3d;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero-phone:hover .device { transform: rotateY(-9deg) rotateX(3deg) rotateZ(0.5deg); }
.hero-phone .device img {
  display: block; width: 100%;
  filter:
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28))
    drop-shadow(24px 42px 46px rgba(10, 20, 16, 0.42));
}
.hero-phone .device::before {
  content: ""; position: absolute; inset: -14% -22%;
  background: radial-gradient(closest-side, rgba(240, 200, 150, 0.16), transparent 72%);
  transform: translateZ(-80px);
  pointer-events: none;
}
@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; padding-top: 56px; padding-bottom: 60px; gap: 40px; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-phone .device { width: min(260px, 68%); transform: rotateY(-10deg) rotateX(3deg) rotateZ(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-phone .device, .hero-phone:hover .device { transition: none; }
}

/* Stat strip */
.stat-strip { background: var(--green-deep); color: #fff; border-top: 1px solid rgba(255,255,255,0.06); }
.stat-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 72px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.stat-strip strong { display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; color: #f0c896; font-variant-numeric: tabular-nums; }
.stat-strip span { font-size: 0.86rem; color: rgba(255,255,255,0.66); max-width: 24em; display: inline-block; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: #fff; }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--orange); margin: 0 0 10px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; line-height: 1.12; margin: 0 0 14px; color: var(--green-deep); letter-spacing: -0.025em; }
.section-intro { color: var(--ink-soft); max-width: 44em; margin: 0 0 40px; font-size: 1.08rem; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* Screenshot gallery */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; align-items: start; }
.shot { text-align: center; margin: 0; }
.shot img {
  display: block; width: 100%;
  filter: drop-shadow(0 2px 3px rgba(31, 42, 38, 0.10)) drop-shadow(0 16px 28px rgba(31, 42, 38, 0.16));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.shot:hover img { transform: translateY(-6px); }
.shot figcaption { margin-top: 16px; font-weight: 650; color: var(--green-dark); font-size: 0.95rem; letter-spacing: -0.01em; }
@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(5, 52vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
  .shot { scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) { .shot img, .shot:hover img { transition: none; transform: none; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: var(--card); border: var(--border-soft); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.step .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--green-tint);
  color: var(--green-dark); font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--green-deep); }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Calculator */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.calc-card { background: var(--card); border: var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.calc-card label { display: block; font-weight: 600; font-size: 0.92rem; margin: 18px 0 6px; color: var(--green-deep); }
.calc-card label:first-of-type { margin-top: 0; }
.calc-card input[type="number"] {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d8d5cc; border-radius: 10px;
  font-size: 1.05rem; background: var(--cream); color: var(--ink);
}
.calc-card input[type="number"]:focus { outline: 2px solid var(--green); border-color: var(--green); }
.calc-results { background: var(--green-deep); color: #fff; border-radius: var(--radius); padding: 30px; }
.calc-results h3 { margin: 0 0 20px; font-size: 1.2rem; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.calc-row:last-child { border-bottom: none; }
.calc-row span { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.calc-row strong { font-size: 1.35rem; }
.calc-row strong.hit { color: #f2a08c; }
.calc-row strong.base { color: #a9c7b8; }
.calc-footnote { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 16px; }
.calc-cta { margin-top: 22px; }
@media (max-width: 820px) { .calc-wrap { grid-template-columns: 1fr; } }

/* Guides grid */
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.guide-card {
  display: block; background: var(--card); border: var(--border-soft); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.guide-card h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--green-dark); }
.guide-card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.95rem; }
.guide-card .more { font-weight: 700; color: var(--orange); font-size: 0.92rem; }
@media (max-width: 720px) { .guides-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  background: var(--card); border: var(--border-soft); border-radius: 14px; box-shadow: var(--shadow);
  padding: 4px 24px; margin-bottom: 14px;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; color: var(--green-deep);
  padding: 16px 0; list-style: none; position: relative; padding-right: 34px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--orange); font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .faq-a { padding: 0 0 18px; color: var(--ink-soft); }
.faq-list .faq-a a { font-weight: 700; color: var(--orange); text-decoration: none; }
.faq-list .faq-a a:hover { text-decoration: underline; }

/* Final CTA */
.final-cta { background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.85); max-width: 38em; margin: 0 auto 30px; font-size: 1.1rem; }
.final-cta .app-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 12px 32px rgba(0,0,0,0.3); margin-bottom: 24px; }

/* Footer */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.7); padding: 44px 0 34px; font-size: 0.92rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 36px 64px; justify-content: space-between; margin-bottom: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-tagline { max-width: 26em; }

/* ===== Guide article pages ===== */
.article-hero { background: linear-gradient(180deg, var(--green-dark) 0%, var(--green) 100%); color: #fff; padding: 56px 0 48px; }
.article-hero .breadcrumb { font-size: 0.88rem; margin-bottom: 18px; }
.article-hero .breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.article-hero .breadcrumb a:hover { color: #fff; }
.article-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; max-width: 22em; }
.article-hero .sub { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 40em; margin: 0; }
.article { padding: 56px 0; }
.article .container { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.article-body { max-width: 46em; font-size: 1.05rem; }
.article-body h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.article-body h3 { color: var(--green-deep); font-size: 1.18rem; margin: 28px 0 10px; }
.article-body p, .article-body li { color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body .callout {
  background: var(--green-tint); border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 26px 0;
}
.article-body .callout.warn { background: var(--orange-tint); border-color: var(--orange); }
.article-body .callout p { margin: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.98rem; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2ded4; }
.article-body th { color: var(--green-deep); background: var(--green-tint); }
.article-body .figure-red { color: var(--red); font-weight: 800; }
.app-steps { counter-reset: appstep; list-style: none; padding: 0; margin: 22px 0; }
.app-steps li {
  counter-increment: appstep; position: relative; padding: 0 0 18px 54px; margin: 0;
}
.app-steps li::before {
  content: counter(appstep); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; background: var(--green);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
/* Sidebar */
.article-aside { position: sticky; top: 84px; }
.aside-card { background: var(--card); border: var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; text-align: center; margin-bottom: 22px; }
.aside-card img.icon { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 14px; }
.aside-card h3 { margin: 0 0 8px; color: var(--green-deep); font-size: 1.1rem; }
.aside-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 16px; }
.aside-related { background: var(--green-tint); border-radius: var(--radius); padding: 22px 24px; }
.aside-related h4 { margin: 0 0 12px; color: var(--green-deep); }
.aside-related ul { list-style: none; margin: 0; padding: 0; }
.aside-related li { margin-bottom: 10px; font-size: 0.94rem; }
.aside-related a { text-decoration: none; font-weight: 600; }
.aside-related a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .article .container { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
/* In-article CTA band */
.article-cta { background: var(--green-deep); border-radius: var(--radius); color: #fff; padding: 30px; margin: 36px 0; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.article-cta img { width: 64px; height: 64px; border-radius: 14px; }
.article-cta .txt { flex: 1; min-width: 220px; }
.article-cta h3 { margin: 0 0 6px; color: #fff; }
.article-cta p { margin: 0; color: rgba(255,255,255,0.8); font-size: 0.95rem; }
