:root {
  --post-size: 1080px;
  --post-padding-x: 110px;
  --post-padding-left: 140px;
  --post-padding-y: 112px;
  --violet: #6254e8;
  --violet-deep: #5645d8;
  --violet-soft: #ebe8ff;
  --ink-muted: #4b536e;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 28px;
  display: grid;
  gap: 22px;
  place-items: start center;
  background: var(--paper-3);
  color: var(--ink-1);
  font-family: var(--font-body);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(var(--post-size), calc(100vw - 56px));
}

.toolbar-button {
  border: 0;
  border-radius: var(--r-2);
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard), opacity var(--dur-fast) var(--ease-standard);
}

.toolbar-button:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.toolbar-button-primary {
  background: var(--brand-violet);
  color: var(--paper-0);
}

.toolbar-button-secondary {
  background: var(--paper-0);
  color: var(--ink-1);
  box-shadow: inset 0 0 0 1px var(--paper-3);
}

.toolbar-note {
  color: var(--ink-3);
  font-size: var(--fs-small);
}

.post-shell,
.post {
  width: var(--post-size);
  height: var(--post-size);
}

.post {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(114, 184, 248, .10), transparent 22%),
    radial-gradient(circle at 86% 88%, rgba(110, 60, 255, .10), transparent 26%),
    linear-gradient(135deg, #fbfbff 0%, #f8f8fe 64%, #eff0ff 100%);
  box-shadow: var(--shadow-3-light);
  isolation: isolate;
}

.editing .editable {
  outline: 2px dashed rgba(110, 60, 255, .28);
  outline-offset: 5px;
  border-radius: 6px;
}

/* ─── Background decorative blobs ──────────────────────────────────────────── */

.bg-blob {
  position: absolute;
  border-radius: 72px;
  background: linear-gradient(38deg, rgba(155, 48, 234, .12), rgba(114, 184, 248, .18));
  transform: rotate(-48deg);
  pointer-events: none;
  z-index: 0;
}

.bg-blob-tl {
  width: 400px;
  height: 110px;
  left: -150px;
  top: 50px;
  opacity: .55;
}

.bg-blob-br {
  width: 480px;
  height: 130px;
  right: -155px;
  bottom: 80px;
}

/* ─── Left content column ───────────────────────────────────────────────────── */

.content {
  position: absolute;
  left: var(--post-padding-left);
  top: var(--post-padding-y);
  bottom: 115px;
  width: 460px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.brand-row {
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
}

.brand-logo {
  width: 262px;
  height: auto;
  display: block;
}

.headline {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-size: 73px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.5px;
  color: #030611;
}

.headline span {
  color: var(--violet);
}

.subtitle {
  margin: 0;
  flex: 1;
  font-size: 25px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-muted);
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--violet-soft);
  display: grid;
  place-items: center;
  color: var(--violet);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.3;
}

/* ─── Phone mockup ──────────────────────────────────────────────────────────── */

.phone-wrap {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.phone {
  width: 410px;
  height: 840px;
  background: #0a0a0a;
  border-radius: 54px;
  padding: 14px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 50px 130px rgba(0,0,0,.48),
    0 20px 40px rgba(0,0,0,.22);
}

.dynamic-island {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 10;
}

.screen {
  width: 100%;
  height: 100%;
  background: #efefef;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* App header */
.app-header {
  background: var(--violet);
  padding: 50px 16px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: white;
}

.app-btn {
  background: none;
  border: none;
  cursor: default;
  color: white;
  display: grid;
  place-items: center;
  padding: 4px;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 1.5px solid rgba(255,255,255,.36);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-avatar span {
  color: white;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -1px;
  line-height: 1;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-name {
  color: white;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.contact-status {
  color: rgba(255,255,255,.75);
  font-size: 12px;
  margin-top: 2px;
}

/* Chat */
.chat {
  flex: 1;
  padding: 16px 13px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
}

.msg {
  display: flex;
  flex-direction: column;
}

.msg-in { align-items: flex-start; }
.msg-out { align-items: flex-end; }

.bubble {
  max-width: 78%;
  padding: 11px 14px;
  font-size: 15px;
  line-height: 1.42;
}

.msg-in .bubble {
  background: white;
  color: #1a1a2e;
  border-radius: 4px 18px 18px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.msg-out .bubble {
  background: var(--violet);
  color: white;
  border-radius: 18px 4px 18px 18px;
}

.msg-time {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
  padding: 0 4px;
}

/* Confirmation card */
.confirm-card {
  background: white;
  margin: 0 10px 10px;
  border-radius: 16px;
  padding: 16px;
  flex-shrink: 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.07);
}

.confirm-card-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.confirm-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: #ff6f3c;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.confirm-main {
  flex: 1;
}

.confirm-title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  color: #030611;
  margin-bottom: 5px;
}

.confirm-detail {
  font-size: 13px;
  color: #666;
  margin-bottom: 7px;
}

.confirm-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-time {
  font-size: 13px;
  color: #444;
}

.confirm-badge {
  background: #22c55e;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

.confirm-checks {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.8px solid var(--violet);
  display: grid;
  place-items: center;
  color: var(--violet);
  flex-shrink: 0;
}

/* ─── Responsive preview scaling (browser only, not captured on export) ────── */
@media (max-width: 1120px) {
  .post-shell {
    transform: scale(calc((100vw - 56px) / 1080));
    transform-origin: top center;
    height: calc((100vw - 56px));
  }
}
