/* Marstol landing page.
   Colors come from the logo and the home page mockup: dark brown ink, teal
   (darkened for text so it passes contrast), warm neutrals. Pink stays
   inside the logo. The logo always sits on a light background. */

:root {
  --ink: #25160f;
  --ink-soft: #5c4a41;
  --bg: #f6f1ee;
  --panel: #e6ddd8;      /* hero art panel, muted badges, borders */
  --surface: #ffffff;
  --line: #e6ddd8;
  --teal: #4d8d83;       /* logo teal: decoration only */
  --teal-ink: #2f6b62;   /* text, links, badges */
  --teal-deep: #1f4f48;  /* hover */
  --teal-wash: #e3eeeb;
  --ok: #2f6b62;
  --error: #a3341f;

  --radius: 20px;
  --shadow: 0 1px 2px rgb(37 22 15 / 6%), 0 8px 24px rgb(37 22 15 / 8%);
  --wrap: 1280px;
  --gutter: 48px;
  font-size: 17px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { color: var(--teal-deep); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
  color: var(--teal-ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .8em;
}
.lead { font-size: 19px; color: var(--ink-soft); max-width: 540px; }
.narrow { max-width: 34em; }
.small-note { font-size: .9rem; color: var(--ink-soft); margin: 1em 0 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .45em;
  background: var(--ink); color: #fff;
  border: 2px solid var(--ink);
  padding: 12px 24px; border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: #3b2a22; border-color: #3b2a22; color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.6em; }

/* Header */
.header-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand img { height: 56px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--teal-ink); text-decoration: none; }

/* Hero */
.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .actions { margin-top: 32px; }
.hero-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-panel {
  width: 100%; max-width: 480px;
  background: var(--panel); border-radius: 28px;
  padding: 48px 40px;
  display: flex; justify-content: center;
}
.hero-panel img { width: 100%; max-width: 340px; }

/* Products: the tiles */
.products { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.products .wrap { padding-top: 72px; padding-bottom: 72px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.tiles { display: flex; flex-wrap: wrap; gap: 24px; }
.tile {
  flex: 1 1 300px; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tile:hover { text-decoration: none; color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d6c9c1; }
.tile h3 { font-size: 24px; margin: 0; }
.tile p { margin: 0; font-size: 16px; color: var(--ink-soft); flex-grow: 1; }
.tile-link { font-weight: 700; color: var(--teal-ink); }
.tile:hover .tile-link { text-decoration: underline; }

.badge {
  display: inline-block; align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--teal-ink);
  border-radius: 999px; padding: 5px 12px; line-height: 1.4;
}
.badge-muted { color: var(--ink); background: var(--panel); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1em; }

/* Product detail sections */
.detail { border-bottom: 1px solid var(--line); }
.detail-alt { background: var(--surface); }
.detail-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.detail-flip .detail-copy { order: 2; }
.detail-copy h2 { font-size: clamp(1.9rem, 3.4vw, 40px); margin-bottom: .2em; }
.detail-sub { font-size: 19px; font-weight: 700; color: var(--ink-soft); }
.detail-copy > p:not(.detail-sub, .badges, .eyebrow, .small-note) { color: var(--ink-soft); }
.detail-media { margin: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 .5em; }
.checks li { position: relative; padding-left: 1.7em; margin: .4em 0; }
.checks li::before {
  content: ""; position: absolute; left: .15em; top: .5em;
  width: .45em; height: .8em;
  border: solid var(--teal-ink); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.tablet { background: var(--ink); padding: 10px; border-radius: 18px; box-shadow: var(--shadow); }
.tablet img { border-radius: 8px; }
.tablet-sm { padding: 5px; border-radius: 10px; }
.tablet-sm img { border-radius: 4px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.thumbs figure, .phones figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--ink-soft); text-align: center; margin-top: 8px; font-weight: 600; }

.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 480px; justify-self: center; }
.phone { background: var(--ink); padding: 8px; border-radius: 30px; box-shadow: var(--shadow); }
.phone img { border-radius: 23px; }

.browser { border: 1px solid var(--line); border-top: 26px solid var(--panel); border-radius: 12px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.browser::before {
  content: ""; position: absolute; top: -17px; left: 12px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #cbbdb5; box-shadow: 15px 0 #cbbdb5, 30px 0 #cbbdb5;
}

.flow { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 14px; max-width: 420px; counter-reset: flow; }
.flow li {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  counter-increment: flow;
}
.flow li::before {
  content: counter(flow); flex: none;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-ink); color: #fff; font-weight: 800;
}
.flow li + li { position: relative; }
.flow li + li::after {
  content: ""; position: absolute; left: 37px; top: -15px;
  width: 2px; height: 14px; background: var(--teal);
}
.flow strong { display: block; font-size: 1.05rem; }
.flow span { color: var(--ink-soft); }

/* Generic sections */
.section { padding: 88px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin-bottom: 1em; max-width: 26ch; }

.problems { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.problems li {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--teal);
  border-radius: 12px; padding: 18px 20px; font-weight: 600;
}
.after-list { max-width: 40em; font-size: 1.1rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--teal-ink); color: var(--teal-ink);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.steps p { color: var(--ink-soft); }

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 2em; }
.person { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.avatar {
  flex: none; width: 104px; height: 104px; border-radius: 50%;
  background: var(--teal-wash); color: var(--teal-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 1.5rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.person h3 { margin-bottom: .1em; }
.role { color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.todo { background: #fff3c4; padding: 2px 6px; border-radius: 4px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-copy p:not(.eyebrow) { color: var(--ink-soft); }
.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  background: var(--surface); border: 1.5px solid #cdbfb7; border-radius: 10px;
  padding: .65em .8em; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 8em; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--teal-wash); border-color: var(--teal-ink); }
.contact-form [aria-invalid="true"] { border-color: var(--error); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-ok::before { content: "✓ "; }
.form-status.is-error { color: var(--error); }
.form-status.is-error::before { content: "! "; }

/* Footer */
.site-footer { padding: 32px 0; font-size: .92rem; color: var(--ink-soft); }
.footer-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner .copy { margin-left: auto; }

/* Tablet and down */
@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .detail-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 64px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .detail-flip .detail-copy { order: 0; }
  .team, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* Phones */
@media (max-width: 640px) {
  :root { --gutter: 16px; font-size: 16px; }
  .brand img { height: 48px; }
  .site-nav { gap: 20px; }
  .hero-inner { padding-top: 24px; padding-bottom: 48px; gap: 32px; }
  .hero-art { display: none; }  /* the header already shows the logo */
  .lead, .detail-sub { font-size: 17px; }
  .products .wrap { padding-top: 56px; padding-bottom: 56px; }
  .tile, .contact-form, .person { padding: 24px 20px; }
  .problems, .field-row { grid-template-columns: 1fr; }
  .person { flex-direction: column; gap: 14px; }
  .avatar { width: 88px; height: 88px; font-size: 1.25rem; }
  .footer-inner .copy { margin-left: 0; }
  .thumbs { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
  .tile:hover { transform: none; }
}
