/* ============================================================
   DJITools — official site
   Brand: independent / local / stable
   Palette: deep gray text + red accent + warm off-white sections
   ============================================================ */

:root {
  --text:        #1A1A1A;
  --text-soft:   #5C5C5C;
  --text-mute:   #8A8A8A;
  --accent:      #B43B32;
  --accent-dark: #962B23;

  --bg:          #FFFFFF;
  --bg-soft:     #F7F2E8;   /* warm off-white */
  --bg-pricing:  #FCF4F1;   /* very light red */
  --bg-hero:     #FBF8F1;   /* even lighter warm */

  --border:      #E5E0D5;   /* warm border */
  --border-soft: #EDE8DC;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
          "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "Consolas",
          "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Anchor scroll offset to clear the sticky header */
#timely,
#features,
#download,
#pricing,
#faq,
.comparison {
  scroll-margin-top: 88px;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   Header & Logo
   ============================================================ */

header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.logo {
  display: block;
  height: 52px;
  width: auto;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.15s ease;
}

nav a:hover { color: var(--text); }


/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: var(--bg-hero);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--border-soft);
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 22px;
  max-width: 760px;
  color: var(--text);
  position: relative;
}

.hero h1::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 28px;
}

.hero > .container > p {
  font-size: 18px;
  color: var(--text-soft);
  margin-bottom: 8px;
  max-width: 640px;
}

.sub {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-soft);
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 14px;
  margin: 24px 0 36px;
  line-height: 1.7;
  max-width: 460px;
}

.buttons { margin-top: 8px; }

.primary,
.secondary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 24px;
  margin-right: 8px;
  margin-top: 8px;
  border-radius: 0;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid;
}

.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.secondary:hover { border-color: var(--text); }

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: 64px 0;
  background: var(--bg);
}

/* ============================================================
   System requirements (in #download section)
   ============================================================ */

.system-req {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 14px;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

/* ============================================================
   Examples (2-col grid under #features)
   ============================================================ */

.examples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 40px;
}

.examples-grid .example-item h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.examples-grid .example-item p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: none;
}

@media (max-width: 860px) {
  .examples-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Comparison figure (hero → timely bridge) */
.comparison {
  padding: 64px 0;
  background: var(--bg);
}

.comparison-img {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: auto;
}

.section.gray {
  background: var(--bg-soft);
}

.section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text);
}

.section > .container > p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 14px;
}

/* ============================================================
   Product (Timely)
   ============================================================ */

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product > div:first-child > h2 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

/* Timely section — icon + wordmark inline, no red square */
.product > div:first-child > h2.timely-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product > div:first-child > h2.timely-title::after { content: none; }

/* (legacy: #timely h3:not(.card h3) styles removed — block deleted) */

.timely-icon {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.product > div:first-child > h3 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.product > div:first-child > p {
  color: var(--text-soft);
  margin-bottom: 24px;
  max-width: 480px;
}

/* ============================================================
   Card (single)
   ============================================================ */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px 28px 32px;
}

.card > h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card ul li {
  padding: 12px 0 12px 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text);
  position: relative;
  line-height: 1.5;
}

.card ul li:first-child {
  border-top: none;
  padding-top: 0;
}

.card ul li:first-child::before { top: 0; }

.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.card > p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: none;
  margin: 0;
}

/* ============================================================
   Grid (Why DJITools — 3 cards)
   ============================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-top: 32px;
}

.grid .card {
  border: none;
  border-right: 1px solid var(--border);
  padding: 28px 26px 32px;
}

.grid .card:last-child { border-right: none; }

.grid .card > h3 { margin-bottom: 12px; }

/* ============================================================
   Pricing
   ============================================================ */

.pricing {
  border: 1px solid var(--border);
  padding: 32px 32px 36px;
  max-width: 400px;
  background: var(--bg-pricing);
  margin-top: 24px;
}

.pricing > h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.pricing .price {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
}

.pricing > p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
  max-width: none;
}

.pricing > p + p { margin-top: 4px; }

.pricing .primary { margin-top: 26px; }

/* ============================================================
   Note
   ============================================================ */

.note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 18px;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
  max-width: 480px;
  line-height: 1.6;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  max-width: 760px;
  margin-top: 24px;
}

.faq > h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  letter-spacing: 0.01em;
}

.faq > h3:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.faq > p {
  color: var(--text-soft);
  margin-top: 10px;
  max-width: 720px;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  border-top: 1px solid var(--border);
  padding-top: 36px;
  padding-bottom: 40px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-logo {
  display: block;
  height: 34px;
  width: auto;
}

footer > .container > .footer-row > p {
  margin: 0;
  line-height: 1.7;
}

footer > .container > .footer-row > p:first-child {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

footer .small {
  font-size: 12px;
  color: var(--text-mute);
}



footer .footer-text a {
  color: var(--text-soft);
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.15s ease, border-color 0.15s ease;
}

footer .footer-text a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 64px 0; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .product > div:first-child > h2 { font-size: 44px; }
  .grid { grid-template-columns: 1fr; }
  .grid .card { border-right: none; border-bottom: 1px solid var(--border); }
  .grid .card:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
  nav { gap: 18px; flex-wrap: wrap; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero h1::before { margin-bottom: 20px; }
  .section { padding: 48px 0; }
  .product > div:first-child > h2 { font-size: 36px; }
  .pricing .price { font-size: 48px; }
  .footer-row { flex-direction: column; gap: 20px; }
}
