/*
Theme Name: Nearclock
Theme URI: https://nearclock.com/
Author: Nearclock
Description: Marketing site for Nearclock — staff clock-in and rosters for multi-site teams.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: nearclock
*/

:root {
  --paper: #F4F1EC;
  --card: #FBF9F6;
  --ink: #2C2926;
  --muted: #6E6862;
  --rust: #B55242;
  --sand: #E4DED6;
  --rust-soft: #F4E4DE;
  --stone: #8A847C;
  --success: #2e6b4a;
  --danger: #993f38;
  --dark: #201d1b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--sand);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  line-height: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rust);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--sand);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.btn-login {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--sand);
}
.btn-login:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 56px 0 32px;
  align-items: center;
}
.kicker {
  color: var(--rust);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
h1, h2, .serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  margin: 0 0 18px;
}
.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 36em;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin: 18px 0 0; color: var(--stone); font-size: 14px; }

.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
}
.phone {
  background: var(--dark);
  border-radius: 28px;
  padding: 9px;
  box-shadow: 0 18px 40px rgba(44, 41, 38, 0.12);
}
.phone img { border-radius: 20px; width: 100%; }
.phone.is-focus { transform: translateY(-14px); }

/* Sections */
.section { padding: 80px 0; }
.section-head { max-width: 38em; margin: 0 0 36px; }
.section-head h2, .feature-copy h2, .price-card h2, .demo h2, .coming h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 0 0 12px;
  line-height: 1.15;
}
.section-head p, .feature-copy p, .price-card p, .coming p { margin: 0; color: var(--muted); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
}
.feature-copy h2 { font-size: clamp(28px, 3.4vw, 40px); }
.feature-visual .phone { max-width: 360px; margin: 0 auto; }

.tour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.tour-card {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: 24px;
  padding: 18px 18px 20px;
}
.tour-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  margin: 16px 8px 6px;
}
.tour-card p { margin: 0 8px 4px; color: var(--muted); font-size: 16px; }

/* Pricing */
.pricing { padding-bottom: 40px; }
.price-card {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: 32px;
  padding: 40px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.price-card p { margin: 0 0 24px; }

/* Demo form */
.demo {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: 32px;
  padding: 40px 32px;
}
.demo .intro { color: var(--muted); margin: 0 0 28px; max-width: 38em; }
form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14px; font-weight: 600; color: var(--ink); }
input, textarea {
  font: inherit;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--rust); border-color: var(--rust); }
.notice { border-radius: 14px; padding: 14px 16px; margin: 0 0 20px; }
.notice-ok { background: #e6efe8; color: var(--success); }
.notice-err { background: var(--rust-soft); color: var(--danger); }

.site-footer {
  border-top: 1px solid var(--sand);
  padding: 28px 0 40px;
  color: var(--stone);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Login / coming soon */
.coming {
  max-width: 680px;
  margin: 72px auto 96px;
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: 32px;
  padding: 48px 36px;
  text-align: center;
}
.coming .mark { width: 72px; height: 72px; margin: 0 auto 24px; }
.coming p { margin: 0 0 16px; }
.coming .planned {
  display: inline-block;
  background: var(--rust-soft);
  color: var(--rust);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 28px;
}
.coming-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding: 72px 0 48px; }
  .feature-row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-row.is-flip .feature-copy { order: 2; }
  .tour-grid { grid-template-columns: repeat(3, 1fr); }
  form { grid-template-columns: 1fr 1fr; }
  .form-full { grid-column: 1 / -1; }
  .demo, .price-card { padding: 56px; }
  .nav-mobile { display: flex !important; }
}
@media (max-width: 899px) {
  .nav { display: none; }
  .phones { grid-template-columns: 1fr 1fr; }
  .phone:nth-child(3) { display: none; }
  .phone.is-focus { transform: none; }
}
