/* ==========================================================================
   Praktical Productivity – styles
   ========================================================================== */

:root {
  /* Palette: muted beige + pastel blue, deep navy ink, one bright accent */
  --cream:        #F8F4ED;
  --beige:        #EFE7DA;
  --beige-deep:   #E2D6C3;
  --blue-pastel:  #DCE6EF;
  --blue-muted:   #8EA7BD;
  --blue-deep:    #3D5A76;
  --ink:          #1C2A3A;
  --ink-soft:     #4B5A6A;
  --line:         #D9CFBF;
  --white:        #FFFFFF;
  --accent:       #E0673A;   /* bright coral-orange */
  --accent-soft:  #F7D9CB;
  --success:      #2F7D5B;
  --error:        #B3261E;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 18px 40px -20px rgba(28, 42, 58, 0.35);
  --container: 1160px;
  --gutter:    clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--blue-deep); }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1.1em; }

sup { font-size: 0.55em; line-height: 0; vertical-align: super; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--white);
  padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px; height: 2px;
  background: var(--accent);
  flex: none;
}

.op { color: var(--accent); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent); color: var(--white); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 237, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 207, 191, 0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: block;
  width: 40px;
  height: auto;
  flex: none;
}
/* Matches the logo lockup: bold name over lighter "Productivity" */
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: "Bricolage Grotesque", var(--font-sans);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.brand-name span {
  font-weight: 400;
  font-size: 0.78em;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--blue-deep);
}

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .site-nav { display: none; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, var(--blue-pastel) 0%, transparent 70%),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.equation {
  font-size: clamp(2.3rem, 4.3vw, 3.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: clamp(28px, 4vw, 48px);
}
/* Terms wrap onto separate lines on small screens, one line on desktop */
.eq-term { white-space: nowrap; }
.equation .op {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05em;
  margin: 0 0.12em 0 0.08em;
}
.equation .sq { color: var(--accent); font-size: 0.5em; }
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 28px -18px -18px 28px;
  background: var(--beige-deep);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-badge {
  position: absolute;
  left: -28px; bottom: -48px;
  max-width: 290px;
  background: var(--blue-deep);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
  font-size: 1rem;
  line-height: 1.45;
}
.hero-badge strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}
.hero-badge span {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 3 / 2; }
  .hero-media::before { inset: 18px -10px -10px 18px; }
  .hero-badge { position: static; max-width: none; margin-top: 20px; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt  { background: var(--beige); }
.section-blue { background: var(--blue-pastel); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 56px);
  text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-copy p { color: var(--ink-soft); }
.split-copy .eyebrow { color: var(--blue-deep); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: -1; }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
}
.checklist li {
  position: relative;
  padding: 10px 0 10px 36px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23E0673A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Approach cards --------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.card-op {
  align-self: center;
  justify-self: center;
  display: block;
  width: 48px; height: 48px;
  line-height: 46px;
  text-align: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card p { color: var(--ink-soft); margin: 0; }
.card-symbol {
  display: block;
  text-align: center;
  line-height: 52px;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--blue-pastel);
  color: var(--blue-deep);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.card-feature { background: var(--ink); border-color: var(--ink); }
.card-feature h3 { color: var(--white); }
.card-feature h3 sup { color: var(--accent); }
.card-feature p { color: #C9D4DF; }
.card-feature .card-symbol { background: var(--accent); color: var(--white); }
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card-op { margin: -4px 0; }
}

/* Steps ------------------------------------------------------------------ */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: none;
}
.step {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 3px solid var(--blue-muted);
}
.step:first-child { border-top-color: var(--accent); }
.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--blue-muted);
  line-height: 1;
  margin-bottom: 16px;
}
.step:first-child .step-num { color: var(--accent); }
.step h3 { margin-bottom: 0.4em; }
.step p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .steps { grid-template-columns: 1fr; } }

/* Contact ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.contact-intro p { color: var(--ink-soft); }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
  border: 1px solid var(--line);
}
.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.contact-label-next {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}
.contact-email:hover { color: var(--accent); }

.enquiry-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label, .field-group legend {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field-group {
  border: 0;
  margin: 0 0 18px;
  padding: 16px 16px 2px;
  background: var(--cream);
  border-radius: var(--radius-sm);
}
.field-group legend {
  float: left;
  width: 100%;
  margin-bottom: 12px;
}
.field-group legend + * { clear: both; }
.hint {
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 6px;
}
.req { color: var(--accent); }

input, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder { color: #9AA3AD; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px var(--blue-pastel);
}
.field-error {
  display: block;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 6px;
}
.field-group > .field-error { margin: -6px 0 14px; }

.form-note { font-size: 0.88rem; color: var(--ink-soft); margin: 4px 0 20px; }

.form-status {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 500;
}
.form-status.success { background: #E3F1EA; color: var(--success); }
.form-status.error   { background: #F9E4E2; color: var(--error); }

/* Honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #C9D4DF;
  padding: 48px 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--accent); }
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-name span { color: var(--blue-pastel); }
.copyright { width: 100%; font-size: 0.85rem; opacity: 0.75; }

/* Privacy / text pages --------------------------------------------------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 0.3em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose-meta { font-size: 0.9rem; margin-bottom: 2em; }
.prose-back { margin-top: 3em; }
