* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 15px;
}

a {
  color: inherit;
}

button,
.button {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  border: 0;
  background: var(--button-bg);
  color: var(--text);
  padding: 0 14px;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--button-hover);
}

.button.primary {
  background: var(--button-bg);
  color: var(--text);
}

input,
select {
  min-height: 38px;
  border: 0;
  background: #ffffff;
  padding: 0 11px;
  font: inherit;
}

.page {
  min-height: 100vh;
}

.site-header,
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: #ffffff;
  color: var(--text);
}


.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.mark {
  width: 22px;
  height: 22px;
  border: 3px solid var(--brand-accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.nav-actions {
  display: flex;
  gap: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(34px, 7vw, 86px) clamp(18px, 4vw, 56px);
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-accent);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: .95;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 24px;
}

.preview-stack {
  display: grid;
  gap: 16px;
}

.browser-frame,
.preview-card,
.panel,
.job-card {
  background: #ffffff;
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--text);
  font-size: .75rem;
}

.browser-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 260px;
}

.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  background: var(--bg);
}

.mock-control {
  height: 30px;
  background: var(--button-bg);
}

.mock-control.active {
  background: var(--brand-accent);
}

.mock-viewer {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.mock-viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .86;
}

.mock-hotspot {
  position: absolute;
  left: 54%;
  bottom: 20%;
  width: 86px;
  height: 48px;
  border: 16px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
}

.section {
  padding: clamp(28px, 5vw, 62px) clamp(18px, 4vw, 56px);
}

.landing-fit {
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(520px, 1.22fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 42px);
  min-height: calc(100vh - 68px);
  padding: clamp(18px, 3vw, 42px) clamp(18px, 4vw, 56px);
}

.landing-copy {
  display: grid;
  align-content: center;
  max-width: 660px;
}

.landing-copy h1 {
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(2.15rem, 3.7vw, 4.15rem);
  font-weight: 500;
  line-height: 1;
}

.landing-copy p {
  max-width: 560px;
}

.landing-previews {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 16px;
  min-height: 0;
}

.preview-panel {
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--text);
  font-size: .72rem;
  font-weight: 600;
}

.home-page {
  background: #fdfdfd;
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

.public-page {
  background: #fdfdfd;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
}
.public-logo img {
  height: auto;
}
.public-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 18px;
  flex-shrink: 0;
}
.public-nav a {
  color: #6b6b6b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.public-nav a:hover, .public-nav a.active {
  color: #1a1a1a;
}
.account-profile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
  text-decoration: none;
}
.account-profile-name {
  font-size: 0.75rem;
  color: #6b6b6b;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.2s;
}
.account-profile-link:hover .account-profile-name {
  opacity: 1;
}
.mobile-account-text {
  display: none;
}
.public-main {
  flex: 1;
  padding: 80px 0;
  width: min(1650px, 85vw);
  margin: 0 auto;
}
.page-title {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #1a1a1a;
}
.page-subtitle {
  font-size: 1.25rem;
  color: #6b6b6b;
  margin-bottom: 64px;
  max-width: 800px;
}

.editor-grid {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 0;
}

.editor-side {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  background: var(--bg);
}

.editor-side span {
  height: 28px;
  background: var(--button-bg);
}

.editor-side span:first-child {
  background: var(--brand-accent);
}

.editor-pano,
.public-frame {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.editor-pano img,
.public-frame img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: saturate(.92);
}

.editor-pano i,
.public-frame i {
  position: absolute;
  width: 82px;
  height: 46px;
  border: 16px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
}

.editor-pano i {
  left: 48%;
  bottom: 20%;
}

.public-frame i {
  right: 22%;
  bottom: 24%;
}

.landing-info {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-info article {
  min-height: 116px;
  padding: 18px;
  background: #ffffff;
}

.landing-info strong {
  display: block;
  margin-bottom: 8px;
}

.landing-info p {
  margin-bottom: 0;
  font-size: .88rem;
}

.landing-info .price-card {
  background: #ffffff;
  color: var(--text);
}

.landing-info .price-card p {
  color: var(--muted);
}

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

.step,
.feature,
.panel,
.job-card {
  padding: 22px;
  background: #ffffff;
}

.step strong,
.feature strong,
.job-card strong {
  display: block;
  margin-bottom: 8px;
}

.account-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.account-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
  background: var(--bg);
}

.account-main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
}

.field-stack {
  display: grid;
  gap: 12px;
}

.brand-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
}

.jobs-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.jobs-grid {
  display: grid;
  gap: 1px;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.status {
  display: inline-block;
  margin-top: 8px;
  background: var(--panel-soft);
  padding: 4px 8px;
  color: var(--muted);
  font-size: .78rem;
}

.home-page {
  min-height: 100vh;
  background: #ffffff;
  color: #ff0808;
}

.home-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1650px, 85vw);
  height: auto;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(26px, 8.6vh, 80px) 0 clamp(20px, 4.5vh, 70px);
}

.home-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 0;
  position: relative;
}

.home-logo {
  display: block;
  width: min(787px, 54vw);
  max-width: calc(100% - 400px);
  min-width: 250px;
  line-height: 0;
}

.home-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.home-account {
  display: block;
  width: 163px;
  height: 50px;
  margin-top: 2px;
  background: #ffffff url("assets/account.png") right center / contain no-repeat;
  text-decoration: none;
}

.home-account:hover,
.home-account:focus-visible {
  background-image: url("assets/account-rollover.png");
}

.home-account span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 0;
  background: #f2f5f5;
}

.home-copy {
  display: grid;
  align-content: start;
  padding: clamp(42px, 7.8vh, 76px) 30px clamp(18px, 3.2vh, 44px) 0;
}

.home-copy h1 {
  max-width: 650px;
  margin: 0 0 clamp(28px, 5vh, 42px);
  color: #ff0808;
  font-size: clamp(2.25rem, min(2.48vw, 5.2vh), 3rem);
  font-weight: 200;
  line-height: 1.27;
}

.home-title-line {
  display: block;
}

.home-detail {
  max-width: 555px;
  color: rgba(0, 0, 0, .5);
  font-size: clamp(.95rem, min(1.18vw, 2.4vh), 1.22rem);
  font-weight: 500;
  line-height: 1.24;
}

.home-detail {
  margin: 0 0 clamp(34px, 8.2vh, 76px);
}

.home-cta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  background: #ffffff;
  color: #ff0808;
  text-decoration: none;
}

.home-cta span {
  display: block;
  height: clamp(34px, 3.2vw, 45px);
  aspect-ratio: 74 / 114;
  background: url("assets/arrow.png") center / 100% 100% no-repeat;
}

.home-cta strong {
  display: block;
  padding: 0 clamp(14px, 1.8vw, 24px);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  font-weight: 600;
}

.home-cta:hover,
.home-cta:focus-visible {
  background: #dce5e5;
}

.home-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #e7eeee;
}

.home-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 120%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 50% center;
  transform: translateX(-12%);
  animation: homePan 20s ease-in-out infinite alternate;
}

@keyframes homePan {
  from {
    transform: translateX(-15%);
  }

  to {
    transform: translateX(-3%);
  }
}

@media (max-width: 820px) {
  .hero,
  .account-shell,
  .steps,
  .feature-grid,
  .landing-fit,
  .landing-previews,
  .landing-info {
    grid-template-columns: 1fr;
  }

  .site-header,
  .account-header {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 14px;
  }

  .nav-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .landing-fit {
    display: grid;
    min-height: 0;
    padding: 18px 20px 28px;
  }

  .landing-fit,
  .landing-copy,
  .landing-info article {
    min-width: 0;
    max-width: 100%;
  }

  .landing-copy,
  .landing-previews,
  .landing-info {
    width: calc(100vw - 40px);
  }

  .landing-copy h1 {
    font-size: clamp(2.2rem, 10.5vw, 3rem);
    max-width: 9ch;
    overflow-wrap: break-word;
  }

  .landing-copy p {
    max-width: 28ch;
  }

  .landing-previews,
  .preview-panel {
    min-width: 0;
  }

  .editor-grid {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .preview-head span:last-child {
    display: none;
  }

  .landing-info {
    grid-column: auto;
  }

  .browser-body {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .job-card,
  .jobs-heading {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .home-shell,
  .public-main {
    width: min(100vw - 64px, 680px);
    height: auto;
    min-height: auto;
    padding: 22px 0 34px;
  }

  .home-header {
    align-items: center;
    margin-bottom: 18px;
    position: relative;
  }

  .home-logo {
    width: min(76vw, 300px);
  }

  .home-account {
    width: 50px;
    height: 50px;
    background-position: right center;
    background-image: url("assets/account.png");
  }

  .home-account:hover,
  .home-account:focus-visible {
    background-image: url("assets/account.png");
    opacity: .78;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 32px;
  }

  .home-copy {
    min-width: 0;
    padding: 30px 24px 28px 0;
  }

  .home-copy h1 {
    max-width: 100%;
    margin-bottom: 28px;
    font-size: clamp(2rem, 8.8vw, 2.45rem);
    line-height: 1.18;
  }

  .home-title-line {
    display: inline;
  }

  .home-title-line::after {
    content: " ";
  }

  .home-title-line:last-child::after {
    content: "";
  }

  .home-detail {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: .9rem;
    padding-left: 0;
    margin-bottom: 30px;
  }

  .home-cta {
    width: max-content;
  }

  .home-media {
    min-height: 0;
    height: 350px;
  }
}

.home-account.signed-in {
  background: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: auto;
  min-width: 163px;
  text-decoration: none;
}

.home-account.signed-in:hover {
  background: none;
}

.home-account.signed-in span {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  color: var(--muted);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s;
}

.home-account.signed-in:hover span {
  color: var(--text, #333);
}

.home-account.signed-in .user-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.delete-project-btn:hover {
  text-decoration: underline;
  background: rgba(230, 57, 70, 0.05) !important;
}

/* Responsive Overrides */

/* iPad Size */
@media (max-width: 1024px) {
  .home-shell,
  .public-main {
    width: calc(100vw - 128px); /* 64px margins */
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .home-media {
    min-height: 0;
    height: 400px;
  }
  .public-wrapper {
    padding: 64px 0;
  }
}

/* Mobile Size */
@media (max-width: 768px) {
  .home-shell,
  .public-main {
    width: calc(100vw - 48px); /* 24px margins */
  }
  .home-shell {
    padding-top: clamp(16px, 4vh, 32px);
  }
  .home-logo {
    width: min(76vw, 300px);
  }
  .public-wrapper {
    padding: 48px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .home-hero {
    gap: 16px;
  }
  .home-media {
    min-height: 0;
    height: 250px;
  }
}

/* Tablet & Mobile Nav Sizing */
@media (max-width: 950px) {
  /* Mobile Nav Styles */
  .mobile-menu-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #1a1a1a;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
  }
  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .public-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 90;
    margin-top: 16px;
  }
  .public-nav.is-open {
    display: flex;
  }
  .account-profile-link {
    padding-top: 0;
  }
  .user-icon {
    display: none !important;
  }
  .account-profile-name {
    display: none !important;
  }
  .mobile-account-text {
    display: block !important;
    font-size: 1rem;
    font-weight: 500;
  }
}

/* Desktop Only Menu Toggle */
@media (min-width: 951px) {
  .mobile-menu-toggle {
    display: none;
  }
}
