:root {
  color-scheme: light;
  --ink: #17272c;
  --paper: #fbf7ef;
  --white: #fffdf8;
  --teal: #0d7774;
  --coral: #e86f56;
  --gold: #d6a84a;
  --sage: #8fa68f;
  --blue: #426b7d;
  --line: #ded5c5;
  --muted: #62716f;
  --soft: #eef4ef;
  --shadow: 0 18px 48px rgba(23, 39, 44, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 720px;
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.97), rgba(251, 247, 239, 0.86) 48%, rgba(251, 247, 239, 0.2)),
    url("../website/assets/hero-digital-pilot.png") center right / cover;
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 16px clamp(18px, 4vw, 58px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.55fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  min-height: 620px;
  padding: clamp(34px, 6vw, 86px);
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
  line-height: 1.25;
}

.hero-copy p {
  color: #314144;
  font-size: 1.14rem;
  line-height: 1.66;
}

.hero-actions,
.builder-actions,
.export-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: var(--shadow);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.86);
  border-color: var(--line);
}

.hero-panel {
  display: grid;
  place-items: center;
  min-height: 430px;
}

.orbit {
  position: relative;
  width: min(430px, 84vw);
  aspect-ratio: 1;
  border: 1px solid rgba(13, 119, 116, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.orbit::before,
.orbit::after {
  position: absolute;
  inset: 19%;
  content: "";
  border: 1px solid rgba(23, 39, 44, 0.12);
  border-radius: inherit;
}

.orbit::after {
  inset: 35%;
}

.center,
.node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 900;
}

.center {
  inset: 50% auto auto 50%;
  width: 78px;
  min-width: 78px;
  height: 78px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.node {
  background: var(--white);
  border: 1px solid var(--line);
}

.node.device {
  top: 12%;
  left: 38%;
}

.node.files {
  top: 34%;
  right: 6%;
  color: var(--teal);
}

.node.media {
  right: 18%;
  bottom: 12%;
  color: var(--coral);
}

.node.inbox {
  left: 18%;
  bottom: 12%;
  color: var(--blue);
}

.node.focus {
  top: 34%;
  left: 6%;
  color: var(--gold);
}

main {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 76px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: -56px;
  margin-bottom: 60px;
}

.status-strip div {
  min-height: 112px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-strip strong {
  display: block;
  margin-bottom: 8px;
}

.status-strip span,
.assistant-card p,
.output-card p,
.field,
legend {
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr);
  gap: 18px;
  align-items: start;
}

.builder,
.assistant-card,
.plan-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.builder {
  display: grid;
  gap: 26px;
  padding: clamp(22px, 4vw, 36px);
}

.section-head {
  max-width: 840px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 12px;
  font-weight: 900;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  background: #f5efe3;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.chips input {
  accent-color: var(--teal);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 900;
}

.field.full {
  width: 100%;
}

select,
input[type="time"],
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

.assistant-card {
  position: sticky;
  top: 16px;
  padding: 24px;
}

#scoreValue {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.assistant-log {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.assistant-log span {
  display: block;
  padding: 12px 14px;
  background: var(--soft);
  border-radius: 8px;
  color: #344447;
  line-height: 1.45;
}

.plan-shell {
  margin-top: 64px;
  padding: clamp(22px, 4vw, 36px);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 26px 0 18px;
}

.tab {
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  background: #f5efe3;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.panel {
  display: none;
}

.panel.active {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.output-card {
  min-height: 210px;
  padding: 20px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.output-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: #344447;
  line-height: 1.45;
}

.export-row {
  margin-top: 22px;
}

@media (max-width: 980px) {
  .app-shell {
    background:
      linear-gradient(90deg, rgba(251, 247, 239, 0.97), rgba(251, 247, 239, 0.68)),
      url("../website/assets/hero-digital-pilot.png") center / cover;
  }

  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 360px;
  }

  .assistant-card {
    position: static;
  }

  .status-strip,
  .form-grid,
  .panel.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 24px 18px 84px;
  }

  .hero-actions .button,
  .builder-actions .button,
  .export-row .button {
    width: 100%;
  }

  main {
    width: min(100% - 24px, 1220px);
  }

  .status-strip,
  .form-grid,
  .panel.active {
    grid-template-columns: 1fr;
  }

  .orbit {
    width: min(340px, 86vw);
  }
}

