/* latin-ext */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/dm-sans-0.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/dm-sans-1.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-2.woff2) format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-3.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-4.woff2) format("woff2");
  unicode-range:
    U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-5.woff2) format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-6.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-7.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f3ed;
  --surface: #fffefb;
  --ink: #20231e;
  --muted: #73766c;
  --line: #dcded4;
  --accent: #2047f5;
  --accent-soft: #e9edff;
  --radius: 18px;
  --font: "DM Sans", sans-serif;
  --heading: "Manrope", sans-serif;
  --shadow: 0 20px 70px #1e24120a;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--font);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[contenteditable]:focus-visible {
  outline: 3px solid #728dff;
  outline-offset: 3px;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4 {
  font-family: var(--heading);
  line-height: 1.13;
  letter-spacing: -0.055em;
  margin: 0 0 18px;
  font-weight: 650;
}
h1 {
  font-size: clamp(45px, 6.2vw, 92px);
}
h2 {
  font-size: clamp(34px, 4vw, 58px);
}
h3 {
  font-size: 25px;
}
p {
  margin: 0 0 20px;
}
small {
  font-size: 12px;
}
button {
  color: inherit;
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 7px;
  width: 100%;
}
input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 11px 13px;
  color: var(--ink);
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 105px;
}
input[type="color"] {
  height: 44px;
  padding: 5px;
}
input[type="checkbox"] {
  width: auto;
  display: inline;
  margin: 0 7px 0 0;
}
.wrap {
  width: min(1360px, calc(100% - 96px));
  margin: auto;
}
.header {
  height: 100px;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 750 31px/1 var(--heading);
  letter-spacing: -2px;
  white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  border-radius: 10px;
  color: #fff;
  font: bold 36px/0.8 Georgia;
  letter-spacing: -5px;
  padding-right: 5px;
}
.brand sup {
  font: 500 10px/1 var(--font);
  letter-spacing: 1px;
  margin-left: 2px;
  align-self: flex-start;
  padding-top: 6px;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 27px;
  margin: auto;
}
.header nav a {
  font-size: 13px;
  font-weight: 550;
  transition: color 0.15s;
}
.header nav a:hover,
.header nav a.active {
  color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-login {
  font-size: 13px;
  font-weight: 600;
}
.btn {
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  transition:
    transform 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  background: #1235dc;
}
.btn.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn.secondary:hover {
  background: #fff;
}
.btn.dark {
  background: var(--ink);
}
.btn.light {
  background: white;
  color: var(--ink);
}
.btn.small {
  padding: 9px 14px;
  font-size: 12px;
}
.btn.danger {
  background: #b13535;
}
.btn.ghost {
  background: none;
  color: var(--ink);
  padding: 9px 12px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px;
  min-width: 35px;
  min-height: 35px;
  line-height: 1;
}
.icon-btn:hover {
  background: #e6e8df;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
.menu-toggle {
  display: none;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: var(--accent);
  border-radius: 50%;
}
.muted {
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 55px;
  padding: 77px 0 80px;
  align-items: center;
  position: relative;
}
.hero h1 {
  max-width: 740px;
  margin-bottom: 27px;
  line-height: 1.04;
  font-size: clamp(54px, 6.1vw, 88px);
}
.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.065em;
}
.hero .lead {
  max-width: 410px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 24px;
}
.hero-note {
  font-size: 11px;
  display: flex;
  gap: 19px;
  color: var(--muted);
}
.hero-note span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-note .icon {
  width: 13px;
  height: 13px;
}
.studio-art {
  height: 490px;
  position: relative;
  padding: 36px 0 0 23px;
}
.art-grid {
  position: absolute;
  inset: 0 -16px 0 0;
  opacity: 0.35;
  background-image: radial-gradient(#9b9e92 0.8px, transparent 0.8px);
  background-size: 19px 19px;
  mask-image: linear-gradient(
    180deg,
    transparent,
    #000 25%,
    #000 85%,
    transparent
  );
}
.art-window {
  position: relative;
  background: #fff;
  border: 1px solid #d6d9cd;
  border-radius: 13px;
  box-shadow: 0 22px 65px #3a422518;
  transform: rotate(-2deg);
  overflow: hidden;
  margin-top: 10px;
}
.art-toolbar {
  height: 39px;
  background: #f9faf6;
  border-bottom: 1px solid #e4e5df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  font-size: 8px;
}
.traffic {
  display: flex;
  gap: 4px;
}
.traffic i {
  width: 5px;
  height: 5px;
  background: #c8cbbb;
  border-radius: 50%;
}
.art-controls {
  display: flex;
  gap: 7px;
  align-items: center;
}
.art-controls b {
  background: var(--accent);
  color: #fff;
  padding: 3px 7px;
  border-radius: 3px;
  font-weight: 500;
}
.art-body {
  display: flex;
  height: 318px;
}
.art-sidebar {
  width: 40px;
  background: #f9faf6;
  border-right: 1px solid #e4e5df;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}
.art-sidebar .icon {
  width: 13px;
  height: 13px;
  color: #8d9185;
}
.art-sidebar .on {
  color: var(--accent);
}
.art-canvas {
  flex: 1;
  padding: 20px 25px;
  background: #efeee7;
  position: relative;
  overflow: hidden;
}
.art-site-nav {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  margin-bottom: 28px;
  align-items: center;
}
.art-site-nav strong {
  font: 600 13px Georgia;
}
.art-site-nav span {
  word-spacing: 10px;
}
.art-selected {
  border: 1px solid var(--accent);
  position: relative;
  padding: 9px 8px;
  margin: -9px -8px 0;
}
.art-selected:before,
.art-selected:after {
  content: "";
  width: 5px;
  height: 5px;
  background: #fff;
  border: 1px solid var(--accent);
  position: absolute;
  bottom: -3px;
}
.art-selected:before {
  left: -3px;
}
.art-selected:after {
  right: -3px;
}
.art-label {
  position: absolute;
  left: -1px;
  top: -18px;
  padding: 1px 6px;
  font-size: 7px;
  background: var(--accent);
  color: #fff;
}
.art-headline {
  font: 400 clamp(23px, 3vw, 42px)/1.08 Georgia;
  letter-spacing: -1.5px;
  max-width: 220px;
  margin-bottom: 12px;
}
.art-copy {
  font-size: 7px;
  width: 150px;
  line-height: 1.7;
}
.art-pill {
  font-size: 6px;
  display: inline-block;
  background: #24291e;
  color: #fff;
  border-radius: 20px;
  padding: 6px 13px;
  margin-top: 9px;
}
.art-orb {
  width: 153px;
  height: 153px;
  position: absolute;
  right: 9px;
  top: 72px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    ellipse at 20% 20%,
    #e5eac8 0 2px,
    #9ca974 3px 5px,
    #d7dfb9 6px 8px
  );
  box-shadow:
    inset -25px -12px 30px #3a492d40,
    10px 12px 20px #58614215;
  transform: rotate(-35deg);
}
.art-bottom {
  display: flex;
  gap: 8px;
  margin-top: 27px;
}
.art-bottom i {
  height: 44px;
  background: #dce1d0;
  border-radius: 3px;
  flex: 1;
}
.art-bottom i:nth-child(2) {
  background: #c4cdb1;
}
.art-bottom i:nth-child(3) {
  background: #d6ceb9;
}
.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px #27331b14;
  padding: 13px 16px;
  font-size: 10px;
  z-index: 2;
}
.float-ai {
  left: 0;
  bottom: 13px;
  width: 265px;
  transform: rotate(-2deg);
}
.float-ai strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  margin-bottom: 9px;
}
.float-ai p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 10px;
}
.float-ai .prompt-line {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px;
  font-size: 9px;
  display: flex;
  justify-content: space-between;
}
.float-theme {
  right: -25px;
  top: 16px;
  width: 126px;
  transform: rotate(5deg);
}
.swatch-row {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}
.swatch-row i {
  width: 20px;
  height: 20px;
  border: 3px solid white;
  box-shadow: 0 0 0 1px #dcded4;
  border-radius: 50%;
}
.float-cursor {
  position: absolute;
  right: 43px;
  bottom: 94px;
  background: var(--accent);
  color: #fff;
  padding: 5px 10px;
  font-size: 8px;
  border-radius: 0 4px 4px 4px;
  transform: rotate(-2deg);
}
.float-cursor:before {
  content: "↖";
  position: absolute;
  left: -12px;
  top: -20px;
  color: var(--accent);
  font-size: 30px;
}
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  gap: 20px;
  font-size: 11px;
}
.strip > span {
  color: var(--muted);
  max-width: 150px;
  line-height: 1.5;
}
.strip strong {
  font: 600 16px var(--heading);
  letter-spacing: -0.6px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.strip .icon {
  color: #717865;
}
.section {
  padding: 90px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 37px;
}
.section-head h2 {
  max-width: 660px;
  margin: 0;
}
.section-head p {
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  min-height: 245px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  height: 43px;
  width: 43px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  background: #f6f7f0;
}
.feature-icon .icon {
  width: 21px;
  height: 21px;
}
.feature-card h3 {
  font-size: 23px;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.75;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 12px;
}
.feature-card.blue {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.feature-card.blue p {
  color: #d9e0ff;
}
.feature-card.blue .feature-icon {
  background: #ffffff15;
  border-color: #ffffff30;
}
.templates-section {
  background: #e9ece3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.template-preview {
  border: 1px solid #d1d7c7;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1.38;
  position: relative;
}
.template-mini {
  height: 100%;
  padding: 22px;
  font-size: 7px;
}
.template-mini nav {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  margin-bottom: 25px;
}
.template-mini h3 {
  font-size: 29px;
  line-height: 1.08;
  max-width: 190px;
  font-family: Georgia;
  font-weight: 400;
}
.template-mini .mini-shape {
  position: absolute;
  width: 100px;
  height: 120px;
  border-radius: 50px 50px 5px 5px;
  right: 22px;
  bottom: 25px;
  background: repeating-linear-gradient(
    90deg,
    #aebd8f,
    #aebd8f 3px,
    #c9d5b0 4px,
    #c9d5b0 7px
  );
}
.template-mini .mini-btn {
  display: inline-block;
  background: #253321;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 6px;
}
.template-preview.midnight {
  background: #1e262a;
  color: #f3eee3;
}
.midnight .template-mini h3 {
  font-family: var(--heading);
  font-size: 27px;
}
.midnight .mini-shape {
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #effcbd,
    #a7a992 30%,
    #414c3e 65%,
    #1a211e
  );
  width: 115px;
  height: 115px;
  right: 10px;
  bottom: 20px;
}
.midnight .mini-btn {
  background: #dfffa3;
  color: #1b2618;
}
.template-preview.rose {
  background: #ead6cc;
  color: #493027;
}
.rose .mini-shape {
  border-radius: 50% 50% 0 0;
  background: repeating-radial-gradient(
    ellipse at 50% 100%,
    #a06449 1px,
    #a06449 3px,
    #cc9273 4px,
    #cc9273 8px
  );
}
.template-info {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  align-items: center;
}
.template-info strong {
  font-size: 14px;
  font-weight: 600;
}
.template-info small {
  font-size: 10px;
  color: var(--muted);
}
.workflow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.workflow p {
  color: var(--muted);
}
.workflow-steps {
  display: grid;
  gap: 23px;
}
.workflow-step {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 23px;
}
.workflow-step b {
  font: 500 13px var(--heading);
  padding-top: 4px;
  color: var(--accent);
}
.workflow-step h3 {
  font-size: 21px;
  margin-bottom: 8px;
  letter-spacing: -0.6px;
}
.workflow-step p {
  font-size: 13px;
  margin: 0;
}
.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: 22px;
  padding: 59px 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 90px;
}
.cta-band h2 {
  max-width: 650px;
  margin-bottom: 15px;
}
.cta-band p {
  color: #d6deff;
  margin: 0;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer .brand {
  margin-bottom: 20px;
}
.footer p {
  font-size: 12px;
  color: var(--muted);
  max-width: 235px;
}
.footer h4 {
  font: 600 12px var(--font);
  letter-spacing: 0;
  margin: 7px 0 18px;
}
.footer-links {
  display: grid;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.footer a:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}
.page-hero {
  padding: 68px 0 45px;
  max-width: 880px;
}
.page-hero h1 {
  font-size: clamp(42px, 5vw, 70px);
}
.page-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 660px;
}
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 80px;
}
.article h2 {
  font-size: 32px;
  margin-top: 40px;
}
.article h3 {
  font-size: 23px;
  margin-top: 28px;
}
.article p,
.article li {
  color: var(--muted);
}
.article code {
  font-size: 12px;
  background: #e7e9df;
  padding: 3px 7px;
  border-radius: 4px;
}
.article pre,
.code-sample {
  background: #242925;
  color: #e1e9d8;
  padding: 24px;
  border-radius: 12px;
  overflow: auto;
  font: 12px/1.7 monospace;
  white-space: pre-wrap;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.panel h2 {
  font-size: 26px;
}
.panel h3 {
  font-size: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-error {
  color: #ae3434;
  font-size: 13px;
  margin: 10px 0;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
  align-items: center;
  padding: 65px 0 90px;
  min-height: 640px;
}
.auth-layout h1 {
  font-size: clamp(48px, 5vw, 75px);
}
.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow);
}
.auth-panel h2 {
  font-size: 30px;
  margin-bottom: 8px;
}
.auth-panel p {
  font-size: 13px;
  color: var(--muted);
}
.auth-panel .btn {
  width: 100%;
  margin-top: 5px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  font-size: 12px;
}
.auth-links a {
  color: var(--accent);
}
.badge {
  font: 600 10px var(--font);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 5px;
  letter-spacing: 0.1px;
}
.badge.published {
  color: #317239;
  background: #e8f4e8;
  border-color: #cce4c8;
}
.badge.draft {
  background: #f5ebd4;
  border-color: #e9d7ac;
  color: #856323;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
}
.faq-list summary {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.faq-list p {
  color: var(--muted);
  padding-top: 15px;
  margin: 0;
}
.price-card {
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.price-card h3 {
  font-size: 25px;
}
.price {
  font: 650 48px var(--heading);
  letter-spacing: -2px;
  margin: 30px 0 15px;
}
.price span {
  font: 400 13px var(--font);
  letter-spacing: 0;
  color: var(--muted);
}
.price-card ul {
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 2.2;
}
.note-box {
  padding: 17px 20px;
  background: #eaf0df;
  border: 1px solid #d0dcc1;
  border-radius: 10px;
  font-size: 13px;
  margin: 20px 0;
}
.empty-state {
  text-align: center;
  padding: 65px 25px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--ink);
  font-size: 22px;
}
.loading-screen {
  min-height: 80vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 13px 22px;
  border-radius: 9px;
  background: #20271f;
  color: #fff;
  box-shadow: 0 8px 30px #0002;
  font-size: 13px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  max-width: min(600px, 90vw);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #932e2e;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  width: min(600px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: 0 30px 100px #0003;
}
dialog::backdrop {
  background: #111b2266;
  backdrop-filter: blur(4px);
}
#modal-content {
  padding: 30px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.modal-head h2 {
  font-size: 27px;
  margin: 0;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.search-results {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  max-height: 50vh;
  overflow: auto;
}
.search-result {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.search-result strong {
  display: block;
  font-size: 15px;
}
.search-result span {
  font-size: 12px;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 10px;
  padding: 10px;
  background: white;
  z-index: 10000;
}
.skip-link:focus {
  top: 10px;
}
/* Studio shell */
.studio-header {
  height: 67px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}
.studio-header .brand {
  font-size: 25px;
  letter-spacing: -1.4px;
}
.studio-header .brand-mark {
  height: 30px;
  width: 30px;
  font-size: 29px;
  border-radius: 7px;
}
.studio-header .divider {
  height: 22px;
  width: 1px;
  background: var(--line);
}
.studio-site {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
}
.studio-header .right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #dce6cb;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.studio-shell {
  display: flex;
  min-height: calc(100vh - 67px);
}
.studio-sidebar {
  width: 218px;
  flex: none;
  padding: 28px 17px;
  background: #f0f1e9;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.studio-sidebar .section-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #858c7b;
  padding: 0 12px;
  margin-bottom: 9px;
  font-weight: 650;
}
.studio-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 7px;
  font-size: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #626b59;
  font-weight: 500;
}
.studio-nav .icon {
  width: 17px;
  height: 17px;
}
.studio-nav:hover {
  background: #e5e9dc;
}
.studio-nav.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 2px 4px #22301505;
}
.studio-sidebar .sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.studio-sidebar .sidebar-tip {
  font-size: 11px;
  color: #7d8574;
  padding: 15px 12px;
}
.studio-main {
  flex: 1;
  padding: 40px 46px;
  min-width: 0;
  max-width: 1550px;
}
.studio-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}
.studio-title h1 {
  font-size: 35px;
  letter-spacing: -1.4px;
  margin-bottom: 7px;
}
.studio-title p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  background: var(--surface);
}
.stat small {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.stat strong {
  font: 600 35px var(--heading);
  letter-spacing: -1px;
  display: block;
  margin-top: 12px;
}
.dashboard-welcome {
  background: var(--accent);
  border-radius: 15px;
  padding: 32px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 28px;
}
.dashboard-welcome h2 {
  font-size: 29px;
}
.dashboard-welcome p {
  font-size: 13px;
  color: #d6dfff;
  margin: 0;
  max-width: 470px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 12px;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
}
.table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 15px 20px;
  background: #f9faf5;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e9ebe2;
  white-space: nowrap;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table td strong {
  font-size: 13px;
}
.table td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.table .row-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}
.table .page-icon {
  width: 33px;
  height: 38px;
  background: #eef0e8;
  border: 1px solid #dee3d3;
  border-radius: 5px;
  display: grid;
  place-items: center;
  float: left;
  margin-right: 13px;
  color: #77876a;
}
.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.studio-grid .panel {
  padding: 24px;
}
.studio-grid h3 {
  font-size: 20px;
}
.studio-grid p {
  font-size: 12px;
  color: var(--muted);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}
.media-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.media-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #e5e8de;
}
.media-card .media-info {
  padding: 12px;
  font-size: 11px;
  word-break: break-word;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #e8ebe1;
  border-radius: 8px;
  align-items: center;
}
.tabs button {
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 7px 12px;
  font-size: 11px;
}
.tabs button.active {
  background: #fff;
  box-shadow: 0 1px 5px #0001;
}
.editor-main {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.editor-toolbar .page-label {
  font-size: 12px;
  font-weight: 600;
  margin-right: auto;
}
.editor-toolbar .save-state {
  font-size: 10px;
  color: var(--muted);
}
.editor-layout {
  display: grid;
  grid-template-columns: 200px 1fr 250px;
  flex: 1;
  min-height: calc(100vh - 133px);
}
.block-palette {
  border-right: 1px solid var(--line);
  padding: 20px 13px;
  background: #f7f8f1;
  overflow-y: auto;
}
.palette-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 13px;
}
.palette-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.palette-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 15px 5px;
  font-size: 9px;
  cursor: grab;
}
.palette-block:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.palette-block .icon {
  width: 20px;
  height: 20px;
}
.layers {
  margin-top: 30px;
}
.layer {
  padding: 9px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  cursor: pointer;
  margin: 2px 0;
  border: 1px solid transparent;
}
.layer:hover,
.layer.active {
  background: #e8edff;
  border-color: #c7d0ff;
  color: var(--accent);
}
.layer .icon {
  width: 12px;
  height: 12px;
}
.canvas-zone {
  background: #e6e9e0;
  background-image: radial-gradient(#bdc4b1 0.6px, transparent 0.6px);
  background-size: 14px 14px;
  padding: 28px;
  overflow: auto;
  min-width: 0;
}
.canvas-frame {
  background: var(--site-bg, #fffefb);
  color: var(--site-ink, #20231e);
  max-width: 100%;
  margin: auto;
  min-height: 600px;
  box-shadow: 0 7px 30px #25351515;
  transition: max-width 0.25s;
}
.canvas-frame.mobile {
  max-width: 375px;
}
.canvas-frame.tablet {
  max-width: 768px;
}
.canvas-frame .site-header {
  padding: 18px 24px;
  font-size: 9px;
}
.canvas-frame .site-header .site-brand {
  font-size: 17px;
}
.canvas-frame .site-header nav {
  gap: 14px;
  font-size: 9px;
}
.canvas-frame .site-footer {
  padding: 24px;
  font-size: 9px;
}
.canvas-frame .site-block {
  padding: 35px 30px;
}
.canvas-frame .site-block h1 {
  font-size: 40px;
}
.canvas-frame .site-block h2 {
  font-size: 29px;
}
.canvas-frame .site-block p {
  font-size: 12px;
}
.canvas-frame .site-block .btn {
  font-size: 10px;
  padding: 9px 15px;
}
.canvas-frame .site-block .eyebrow {
  font-size: 8px;
}
.canvas-frame .site-block .feature-card {
  min-height: 0;
  padding: 20px;
}
.canvas-frame .site-block h3 {
  font-size: 19px;
}
.editable-block {
  position: relative;
  border: 2px solid transparent;
  cursor: pointer;
}
.editable-block:hover {
  border-color: #8da2ff;
}
.editable-block.selected {
  border-color: var(--accent);
}
.editable-block.selected:before {
  content: attr(data-label);
  position: absolute;
  top: -20px;
  left: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  padding: 2px 8px;
  z-index: 3;
}
.block-actions {
  position: absolute;
  right: 8px;
  top: 6px;
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 3px 10px #0001;
}
.editable-block.selected .block-actions {
  display: flex;
}
.block-actions .icon-btn {
  min-width: 27px;
  min-height: 27px;
  padding: 5px;
}
.block-actions .icon {
  width: 12px;
  height: 12px;
}
.editable-block [contenteditable="true"] {
  cursor: text;
  min-width: 20px;
}
.drop-target {
  border: 2px dashed var(--accent);
  background: #e9edff;
}
.inspector {
  background: #f7f8f1;
  border-left: 1px solid var(--line);
  padding: 20px 17px;
  overflow-y: auto;
  max-height: calc(100vh - 130px);
  position: sticky;
  top: 0;
}
.inspector h3 {
  font-size: 17px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.inspector label {
  font-size: 10px;
  margin-bottom: 14px;
}
.inspector input,
.inspector select,
.inspector textarea {
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 5px;
}
.inspector textarea {
  min-height: 80px;
}
.inspector .form-row {
  gap: 8px;
}
.inspector .small-copy {
  font-size: 11px;
  color: var(--muted);
}
.source-editor {
  width: 100%;
  min-height: 600px;
  resize: vertical;
  font: 12px/1.8 monospace;
  background: #202821;
  color: #d5e9ce;
  border-radius: 10px;
  padding: 24px;
  tab-size: 2;
  border: 0;
}
.source-view {
  padding: 25px;
  flex: 1;
  background: #e9ece3;
}
.source-view .source-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 12px;
  color: var(--muted);
}
.agent-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 25px;
}
.agent-prompt {
  min-height: 180px;
}
.prompt-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.prompt-chips button {
  border: 1px solid var(--line);
  background: #f2f5e9;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 11px;
}
.agent-plan {
  font-size: 13px;
  background: #f4f7ee;
  border: 1px solid #d7e0c8;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}
.message-card {
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 15px;
}
.message-card h3 {
  font-size: 18px;
}
.message-card p {
  font-size: 13px;
  white-space: pre-wrap;
}
.message-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 13px;
}
.settings-layout {
  max-width: 900px;
  display: grid;
  gap: 22px;
}
.plugin-card .feature-icon {
  margin-bottom: 18px;
}
.plugin-card .plugin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.plugin-card .plugin-meta {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}
.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.theme-option {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: var(--surface);
  text-align: left;
}
.theme-option.active {
  border-color: var(--accent);
}
.theme-option strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}
.theme-option .swatch-row i {
  width: 25px;
  height: 25px;
}
.recovery-code {
  font: 600 19px monospace;
  padding: 20px;
  background: #eaf0df;
  border: 1px dashed #b9c7a7;
  border-radius: 9px;
  word-break: break-all;
  user-select: all;
}
.inline-alert {
  font-size: 12px;
  padding: 12px 15px;
  border-radius: 7px;
  background: #edf2df;
  margin-bottom: 18px;
}
.action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.block-empty {
  padding: 70px 25px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
/* Published site shared templates */
.site-root {
  --site-bg: #fffefb;
  --site-ink: #20231e;
  --site-accent: #2047f5;
  --site-surface: #f4f5ed;
  --site-font: var(--font);
  font-family: var(--site-font);
  background: var(--site-bg);
  color: var(--site-ink);
  min-height: 100vh;
}
.site-root .btn {
  background: var(--site-accent);
  color: white;
}
.site-root .site-brand {
  color: var(--site-ink);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 25px 6%;
  border-bottom: 1px solid #88907935;
  flex-wrap: wrap;
}
.site-brand {
  font-family: var(--heading);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
}
.site-header nav {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
}
.site-header .btn {
  font-size: 11px;
  padding: 9px 16px;
}
.site-block {
  padding: 70px 7%;
  position: relative;
}
.site-block.align-center {
  text-align: center;
}
.site-block.align-center .eyebrow,
.site-block.align-center .hero-actions {
  justify-content: center;
}
.site-block.align-center p {
  margin-left: auto;
  margin-right: auto;
}
.site-block.hero-block {
  padding-top: 80px;
  padding-bottom: 80px;
}
.site-block.hero-block h1 {
  max-width: 960px;
}
.site-block.align-center h1 {
  margin-left: auto;
  margin-right: auto;
}
.site-block p {
  max-width: 800px;
  opacity: 0.8;
}
.site-block .eyebrow {
  color: var(--site-accent);
}
.site-block .feature-grid {
  margin-top: 30px;
}
.site-block .feature-card {
  background: var(--site-surface);
  border-color: #88907935;
}
.site-block .feature-card p {
  font-size: 14px;
}
.site-block .hero-image {
  max-height: 500px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 35px;
}
.site-block.image-block img {
  max-height: 600px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.site-block.cta-block {
  background: var(--site-surface);
}
.site-block.quote-block blockquote {
  font: 400 38px/1.35 Georgia;
  margin: 0 0 20px;
  max-width: 1000px;
}
.site-block .form-panel {
  max-width: 600px;
  text-align: left;
  margin-top: 25px;
}
.site-block.align-center .form-panel {
  margin-left: auto;
  margin-right: auto;
}
.site-block .form-panel label {
  font-size: 12px;
}
.site-block .form-panel input,
.site-block .form-panel textarea {
  background: var(--site-bg);
  color: var(--site-ink);
}
.site-block.columns-block .columns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.site-block.spacer-block {
  padding: 0;
  height: 60px;
}
.site-block.divider-block {
  padding: 15px 7%;
}
.site-block.divider-block hr {
  border: 0;
  border-top: 1px solid #88907940;
}
.site-block.html-block iframe {
  width: 100%;
  min-height: 250px;
  border: 0;
  display: block;
}
.site-footer {
  padding: 45px 7%;
  border-top: 1px solid #88907935;
  font-size: 12px;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.site-footer h4 {
  font-size: 14px;
  letter-spacing: -0.3px;
}
.site-footer nav {
  display: grid;
  gap: 10px;
}
.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #88907925;
  padding-top: 20px;
  gap: 20px;
}
.site-footer p {
  font-size: 12px;
  opacity: 0.7;
  max-width: 350px;
}
.powered {
  opacity: 0.6;
  font-size: 10px;
}
.site-search {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
}
.site-root .faq-list p {
  color: inherit;
}
.site-root .faq-list details {
  border-color: #88907935;
}
.published-edit-bar {
  background: #222b21;
  color: #fff;
  padding: 9px 20px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.published-edit-bar a {
  color: #d5eaa7;
}
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  z-index: 100;
  box-shadow: 0 10px 50px #0002;
  font-size: 12px;
}
.cookie-banner p {
  margin-bottom: 13px;
}
.mobile-only {
  display: none;
}
@media (min-width: 1700px) {
  .hero h1 {
    font-size: 94px;
  }
  .studio-art {
    height: 540px;
  }
  .art-body {
    height: 350px;
  }
  .art-orb {
    width: 180px;
    height: 180px;
  }
  .art-headline {
    font-size: 46px;
  }
  .art-window {
    margin-top: 22px;
  }
}
@media (max-width: 1200px) {
  .wrap {
    width: calc(100% - 60px);
  }
  .header {
    gap: 20px;
  }
  .header nav {
    gap: 18px;
  }
  .header nav a {
    font-size: 12px;
  }
  .hero {
    gap: 25px;
  }
  .hero h1 {
    font-size: 68px;
  }
  .studio-art {
    height: 435px;
    padding-left: 8px;
  }
  .float-theme {
    right: -10px;
  }
  .art-orb {
    width: 120px;
    height: 120px;
    right: 8px;
    top: 88px;
  }
  .art-headline {
    font-size: 35px;
    max-width: 190px;
  }
  .art-canvas {
    padding: 20px;
  }
  .art-body {
    height: 290px;
  }
  .float-ai {
    bottom: 5px;
  }
  .studio-sidebar {
    width: 178px;
    padding: 25px 10px;
  }
  .studio-main {
    padding: 30px;
  }
  .editor-layout {
    grid-template-columns: 150px 1fr 220px;
  }
  .palette-block {
    font-size: 8px;
  }
  .canvas-zone {
    padding: 24px 15px;
  }
  .canvas-frame .site-block {
    padding: 30px 20px;
  }
  .canvas-frame .site-block h1 {
    font-size: 34px;
  }
  .canvas-frame .site-block .feature-grid {
    gap: 10px;
  }
  .canvas-frame .site-block .feature-card {
    padding: 12px;
  }
  .studio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 980px) {
  .header nav {
    gap: 13px;
  }
  .header-actions {
    gap: 8px;
  }
  .header .btn {
    padding: 11px 14px;
  }
  .header nav a:nth-last-child(-n + 2) {
    display: none;
  }
  .hero h1 {
    font-size: 58px;
  }
  .hero {
    gap: 16px;
    padding-top: 60px;
  }
  .studio-art {
    height: 400px;
  }
  .art-body {
    height: 270px;
  }
  .art-orb {
    width: 95px;
    height: 95px;
    top: 98px;
  }
  .art-headline {
    font-size: 29px;
    max-width: 145px;
  }
  .float-theme {
    width: 110px;
    right: -5px;
    top: 5px;
  }
  .float-ai {
    width: 220px;
    bottom: 0;
  }
  .strip strong {
    font-size: 13px;
  }
  .strip > span {
    font-size: 10px;
  }
  .feature-card {
    padding: 24px;
  }
  .feature-card h3 {
    font-size: 20px;
  }
  .template-mini h3 {
    font-size: 23px;
    max-width: 130px;
  }
  .template-mini .mini-shape {
    width: 74px;
    height: 90px;
    right: 12px;
    bottom: 20px;
  }
  .midnight .template-mini h3 {
    font-size: 22px;
  }
  .template-mini {
    padding: 16px;
  }
  .cta-band {
    padding: 40px;
  }
  .footer-top {
    gap: 25px;
  }
  .auth-layout {
    gap: 45px;
  }
  .studio-sidebar {
    width: 68px;
    align-items: center;
    padding: 22px 8px;
  }
  .studio-sidebar .studio-nav span,
  .studio-sidebar .section-label,
  .studio-sidebar .sidebar-tip {
    display: none;
  }
  .studio-nav {
    padding: 12px;
  }
  .studio-sidebar .sidebar-bottom {
    padding-top: 25px;
  }
  .studio-title h1 {
    font-size: 30px;
  }
  .editor-layout {
    grid-template-columns: 135px 1fr 200px;
  }
  .inspector {
    padding: 17px 12px;
  }
  .canvas-frame .site-header nav {
    display: none;
  }
  .canvas-frame .site-block .feature-grid {
    grid-template-columns: 1fr;
  }
  .canvas-frame .site-block .feature-card {
    min-height: 0;
  }
  .canvas-frame .site-footer-grid {
    grid-template-columns: 1fr;
  }
  .canvas-frame .site-footer-grid > div:not(:first-child) {
    display: none;
  }
  .canvas-frame .site-block h1 {
    font-size: 32px;
  }
  .agent-layout {
    grid-template-columns: 1fr;
  }
  .studio-main {
    padding: 28px;
  }
  .editor-main {
    padding: 0;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 38px);
  }
  .header {
    height: 78px;
    gap: 15px;
  }
  .brand {
    font-size: 28px;
  }
  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 32px;
  }
  .header nav {
    display: none;
    position: absolute;
    top: 77px;
    left: 0;
    right: 0;
    padding: 25px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    z-index: 50;
    box-shadow: 0 15px 30px #0001;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .header nav.open {
    display: flex;
  }
  .header nav a:nth-last-child(-n + 2) {
    display: block;
  }
  .header nav a {
    font-size: 15px;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-login {
    display: none;
  }
  .header-actions > .btn {
    font-size: 11px;
    padding: 10px 12px;
  }
  .header-actions .icon-btn {
    padding: 5px;
    min-width: 29px;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 47px 0 35px;
  }
  .hero h1 {
    font-size: clamp(50px, 11vw, 75px);
    max-width: 630px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 20px;
  }
  .hero .lead {
    font-size: 15px;
    max-width: 480px;
  }
  .hero-actions {
    margin: 25px 0 20px;
  }
  .studio-art {
    width: 100%;
    max-width: 540px;
    height: 420px;
    margin: 10px auto 0;
    padding: 20px 20px 0;
  }
  .art-window {
    transform: rotate(-1.5deg);
    margin-top: 22px;
  }
  .art-body {
    height: 275px;
  }
  .art-headline {
    font-size: 36px;
    max-width: 210px;
  }
  .art-orb {
    width: 140px;
    height: 140px;
    right: 20px;
    top: 70px;
  }
  .float-theme {
    right: 3px;
    top: 3px;
    transform: rotate(4deg);
  }
  .float-ai {
    bottom: 1px;
    left: 5px;
  }
  .float-cursor {
    bottom: 85px;
    right: 35px;
  }
  .strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    padding: 25px 0;
  }
  .strip > span {
    max-width: none;
    width: 100%;
    text-align: center;
  }
  .strip strong {
    font-size: 12px;
  }
  .strip .icon {
    width: 15px;
    height: 15px;
  }
  .section {
    padding: 60px 0;
  }
  .section-head {
    display: block;
    margin-bottom: 28px;
  }
  .section-head h2 {
    font-size: 37px;
  }
  .section-head p {
    margin-top: 20px;
    max-width: 100%;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    min-height: 0;
    padding: 25px;
  }
  .feature-icon {
    margin-bottom: 20px;
  }
  .feature-card h3 {
    font-size: 24px;
  }
  .template-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .template-preview {
    aspect-ratio: 1.65;
  }
  .template-mini {
    padding: 25px;
  }
  .template-mini nav {
    font-size: 9px;
    margin-bottom: 30px;
  }
  .template-mini h3,
  .midnight .template-mini h3 {
    font-size: 35px;
    max-width: 240px;
  }
  .template-mini .mini-shape {
    width: 125px;
    height: 150px;
    right: 25px;
    bottom: 25px;
  }
  .template-mini .mini-btn {
    font-size: 8px;
    padding: 7px 15px;
  }
  .workflow {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .workflow h2 {
    font-size: 37px;
  }
  .cta-band {
    padding: 34px 25px;
    display: block;
    margin-bottom: 55px;
  }
  .cta-band h2 {
    font-size: 35px;
  }
  .cta-band .btn {
    margin-top: 25px;
  }
  .footer {
    padding-top: 35px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-top > div:first-child {
    grid-column: span 2;
  }
  .footer-bottom {
    flex-wrap: wrap;
    font-size: 9px;
    margin-top: 25px;
    gap: 10px;
  }
  .page-hero {
    padding: 45px 0 30px;
  }
  .page-hero h1 {
    font-size: 45px;
  }
  .page-hero p {
    font-size: 15px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .article h2 {
    font-size: 27px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 40px 0 60px;
    gap: 25px;
  }
  .auth-layout h1 {
    font-size: 45px;
  }
  .auth-layout > .auth-intro p {
    display: none;
  }
  .auth-panel {
    max-width: none;
    padding: 25px;
  }
  .studio-header {
    height: 62px;
    padding: 0 15px;
    gap: 13px;
  }
  .studio-header .studio-site {
    display: none;
  }
  .studio-header .divider {
    display: none;
  }
  .studio-header .right .btn {
    font-size: 10px;
    padding: 7px 10px;
  }
  .studio-header .right {
    gap: 4px;
  }
  .studio-header .brand sup {
    display: none;
  }
  .studio-shell {
    display: block;
    min-height: calc(100vh - 62px);
  }
  .studio-sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    padding: 8px 10px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    align-items: center;
  }
  .studio-sidebar .studio-nav {
    padding: 9px 10px;
    flex: none;
    gap: 6px;
    font-size: 10px;
    flex-direction: column;
  }
  .studio-sidebar .studio-nav span {
    display: block;
    font-size: 8px;
  }
  .studio-sidebar .sidebar-bottom {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
  }
  .studio-sidebar .sidebar-bottom .studio-nav {
    display: none;
  }
  .studio-sidebar .section-label {
    display: none;
  }
  .studio-main {
    padding: 25px 18px;
  }
  .studio-title {
    align-items: flex-start;
    margin-bottom: 23px;
  }
  .studio-title h1 {
    font-size: 29px;
  }
  .studio-title p {
    font-size: 11px;
  }
  .studio-title .btn {
    font-size: 10px;
    padding: 10px 12px;
    white-space: nowrap;
  }
  .stats-grid {
    gap: 9px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 15px 12px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat small .icon {
    display: none;
  }
  .stat strong {
    font-size: 27px;
  }
  .dashboard-welcome {
    display: block;
    padding: 25px;
  }
  .dashboard-welcome h2 {
    font-size: 25px;
  }
  .dashboard-welcome p {
    font-size: 12px;
  }
  .dashboard-welcome .btn {
    margin-top: 20px;
  }
  .table th,
  .table td {
    padding: 13px 12px;
  }
  .table .page-icon {
    display: none;
  }
  .table td small {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .table .hide-mobile {
    display: none;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .editor-main {
    padding: 0;
  }
  .editor-toolbar {
    padding: 10px 13px;
    gap: 7px;
  }
  .editor-toolbar .page-label {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .editor-toolbar .save-state {
    display: none;
  }
  .editor-toolbar .btn {
    padding: 8px 10px;
    font-size: 10px;
  }
  .editor-toolbar .tabs {
    padding: 3px;
  }
  .editor-toolbar .tabs button {
    padding: 5px 8px;
    font-size: 9px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .block-palette {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .palette-title {
    margin-bottom: 8px;
    font-size: 9px;
  }
  .palette-items {
    display: flex;
    overflow: auto;
    gap: 6px;
  }
  .palette-block {
    flex: none;
    min-width: 62px;
    padding: 9px 5px;
    gap: 4px;
    font-size: 8px;
  }
  .palette-block .icon {
    height: 15px;
    width: 15px;
  }
  .layers {
    display: none;
  }
  .canvas-zone {
    padding: 25px 12px;
  }
  .canvas-frame {
    min-height: 400px;
  }
  .canvas-frame .site-block {
    padding: 30px 23px;
  }
  .canvas-frame .site-block h1 {
    font-size: 35px;
  }
  .canvas-frame .site-block h2 {
    font-size: 27px;
  }
  .canvas-frame .site-block .feature-grid {
    grid-template-columns: 1fr;
  }
  .inspector {
    max-height: none;
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px;
  }
  .inspector h3 {
    font-size: 21px;
    margin-bottom: 15px;
  }
  .inspector label {
    font-size: 12px;
  }
  .inspector input,
  .inspector select,
  .inspector textarea {
    font-size: 13px;
    padding: 11px;
  }
  .source-view {
    padding: 18px 12px;
  }
  .source-editor {
    font-size: 11px;
    padding: 14px;
    min-height: 550px;
  }
  .source-view .source-actions {
    font-size: 11px;
  }
  .theme-options {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .agent-layout {
    grid-template-columns: 1fr;
  }
  .site-header {
    padding: 20px 6%;
    gap: 15px;
  }
  .site-header nav {
    gap: 14px;
    font-size: 10px;
  }
  .site-header .site-brand {
    font-size: 24px;
  }
  .site-header .btn {
    font-size: 10px;
    padding: 7px 10px;
  }
  .site-block {
    padding: 45px 6%;
  }
  .site-block.hero-block {
    padding: 55px 6%;
  }
  .site-block h1 {
    font-size: 45px;
  }
  .site-block h2 {
    font-size: 34px;
  }
  .site-block .columns-grid {
    grid-template-columns: 1fr !important;
  }
  .site-block .quote-block blockquote {
    font-size: 28px;
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .site-footer-bottom {
    flex-wrap: wrap;
  }
  .site-block .feature-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  .mobile-only {
    display: block;
  }
  .hide-mobile {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-root h1,
.site-root h2,
.site-root h3,
.site-root h4 {
  font-family: var(--site-font);
}
@media (max-width: 600px) {
  .header .brand sup {
    display: none;
  }
  .header-actions .btn {
    white-space: nowrap;
  }
}
