:root {
  --ink: #391d4d;
  --muted-ink: #5e496d;
  --lavender: #d7dbec;
  --pink: #fe79c7;
  --peach-bg: #f9ece5;
  --blue-bg: #f0f2fb;
  --soft-bg: #fbfbfb;
  --white: #ffffff;
  --placeholder: #e9e9e9;
  --max-page: 1300px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

.page {
  padding: 0 20px 90px;
}

.hero-shell {
  max-width: 860px;
  margin: 50px auto 52px;
  text-align: center;
}

.hero-badge-wrap {
  display: flex;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 30px;
  background: var(--soft-bg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.hero-shell h1 {
  font-size: 48px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  margin-top: 18px;
}

.hero-intro,
.panel-copy p {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
  color: var(--muted-ink);
}

.tool-section {
  max-width: var(--max-page);
  margin: 0 auto;
}

.planner-shell {
  display: grid;
  grid-template-columns: minmax(320px, 580px) minmax(320px, 540px);
  gap: 56px;
  align-items: start;
  justify-content: center;
}

.planner-panel {
  padding: 28px;
}

.upload-panel {
  background: var(--white);
}

.preview-panel {
  background: var(--soft-bg);
  padding-bottom: 36px;
}

.panel-copy h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.panel-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.panel-title-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.panel-title-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.panel-copy p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

.ratio-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.ratio-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.48;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ratio-label.is-active {
  color: var(--ink);
  opacity: 1;
}

.ratio-switch {
  position: relative;
  width: 46px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--muted-ink);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.ratio-switch-thumb {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.ratio-switch.is-34 .ratio-switch-thumb {
  transform: translateX(0);
}

.ratio-switch.is-45 .ratio-switch-thumb {
  transform: translateX(20px);
}

.image-form {
  margin-top: 14px;
}

.drop-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 32px 24px;
  border: 2px dashed #ccc;
  border-radius: 20px;
  background: var(--white);
  text-align: center;
  color: var(--muted-ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.drop-area.is-dragging {
  border-color: #f6ab7e;
  background: #fff8f3;
}

.drop-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--ink);
}

.drop-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.drop-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.drop-subtitle {
  max-width: 360px;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.8;
}

#file-input {
  display: none;
}

.upload-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.status-text,
.helper-text {
  font-size: 14px;
  color: var(--muted-ink);
}

.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;
}

.ghost-button,
.remove-button {
  border: 1px solid var(--lavender);
  background: var(--white);
  color: var(--muted-ink);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ghost-button:hover,
.remove-button:hover {
  background: #f7f8fc;
}

.ghost-button {
  padding: 9px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.78;
}

.uploads-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.post-list-panel {
  margin-top: 20px;
}

.post-list-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--lavender);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.post-list-count {
  min-width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-bg);
  color: var(--muted-ink);
  font-size: 12px;
  font-weight: 700;
}

.upload-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--lavender);
  background: var(--blue-bg);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.upload-thumb {
  width: 68px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.upload-meta strong,
.upload-meta span {
  display: block;
}

.upload-meta strong {
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-meta span {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted-ink);
}

.remove-button {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.upload-item.dragging {
  opacity: 0.3;
}

.upload-item.drop-gap {
  min-height: 92px;
  border: 1px dashed var(--muted-ink);
  background: var(--placeholder);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  position: relative;
}

.download-button {
  display: block;
  margin-top: 30px;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 18px;
  border: 1px solid var(--lavender);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.download-button:hover {
  background: #f7f8fc;
}

.download-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.feed-tile {
  position: relative;
  aspect-ratio: var(--tile-ratio, 4 / 5);
  overflow: hidden;
  border-radius: 0;
  background: var(--placeholder);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.feed-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-remove-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(57, 29, 77, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.feed-tile.filled:hover .feed-remove-button,
.feed-tile.filled:focus-within .feed-remove-button {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.feed-tile.show-remove .feed-remove-button {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.feed-remove-button:hover {
  background: var(--white);
}

.feed-remove-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.feed-tile.filled {
  cursor: grab;
}

.feed-tile.filled:active {
  cursor: grabbing;
}

.feed-tile.dragging {
  opacity: 0.22;
}

.feed-tile.drop-gap {
  background: var(--placeholder);
  box-shadow: inset 0 0 0 1px rgba(57, 29, 77, 0.18);
}

.feed-tile.empty {
  background: var(--placeholder);
  display: grid;
  place-items: center;
}

.feed-add-button {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: #9b9b9b;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.feed-add-button:hover {
  color: #7f7f7f;
}

.feed-empty-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
  pointer-events: none;
}

.feed-empty-overlay span {
  max-width: 240px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted-ink);
}

.info-section {
  padding-top: 80px;
}

.peach-section {
  margin-top: 80px;
  margin-left: -20px;
  margin-right: -20px;
  padding: 80px 20px;
  background: var(--peach-bg);
}

.section-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-copy h2 {
  font-size: 35px;
  font-weight: 700;
  color: var(--ink);
}

.section-copy p {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 400;
  color: var(--muted-ink);
}

.content-grid,
.faq-list {
  max-width: 1300px;
  margin: 30px auto 0;
}

.button-row {
  display: flex;
  justify-content: center;
  margin: 30px auto 0;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: #ff6bc2;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pill-button:hover {
  background: #fe79c7;
}

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

.two-column-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card,
.faq-card {
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
}

.content-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.content-card p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted-ink);
}

.step-card {
  position: relative;
  padding-top: 72px;
}

.step-number {
  position: absolute;
  top: 24px;
  left: 28px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.faq-section {
  padding-bottom: 20px;
}

.faq-card {
  max-width: 900px;
  margin: 30px auto 0;
  padding: 40px 34px;
}

.faq-list {
  margin-top: 0;
}

.faq-item + .faq-item {
  margin-top: 19px;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 25px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-trigger:hover,
.faq-trigger:focus-visible {
  background: transparent;
  color: var(--ink);
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 999px;
}

.faq-icon::before {
  inset: 7px 0 7px 0;
}

.faq-icon::after {
  inset: 0 7px 0 7px;
  transition: opacity 0.2s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
  opacity: 0;
}

.faq-content {
  padding: 0 30px 25px;
  border-bottom: 1px solid rgba(254, 121, 199, 0.39);
  color: var(--ink);
  font-size: 16px;
}

.faq-content p {
  margin-top: 0;
  font-size: 16px;
  color: var(--ink);
}

.faq-item > .faq-trigger[aria-expanded="false"] {
  border-bottom: 1px solid rgba(254, 121, 199, 0.39);
}

.site-footer {
  padding-top: 30px;
  padding-bottom: 10px;
  background: var(--blue-bg);
  width: 100%;
  text-align: center;
}

.footer-inner {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-footer p {
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .planner-shell {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-shell h1 {
    font-size: 38px;
  }

  .feature-grid,
  .steps-grid,
  .two-column-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-shell {
    margin-top: 34px;
  }

  .hero-shell h1 {
    font-size: 30px;
  }

  .hero-intro {
    font-size: 16px;
  }

  .planner-panel {
    padding: 20px;
  }

  .peach-section {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .upload-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .post-list-toggle {
    display: none;
  }

  .post-list-panel {
    display: none;
  }

  .upload-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .remove-button {
    grid-column: 1 / -1;
  }

  .section-copy h2 {
    font-size: 28px;
  }

  .section-copy p {
    font-size: 16px;
  }

  .content-card,
  .faq-card {
    padding: 22px;
    border-radius: 20px;
  }

  .feed-remove-button {
    top: 50%;
    right: auto;
    left: 50%;
    width: 38px;
    height: 38px;
    transform: translate(-50%, -50%) scale(0.96);
  }

  .feed-remove-button svg {
    width: 16px;
    height: 16px;
  }

  .feed-add-button {
    font-size: 36px;
  }

  .feed-tile.filled:hover .feed-remove-button,
  .feed-tile.filled:focus-within .feed-remove-button {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.96);
  }

  .feed-tile.show-remove .feed-remove-button {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }

  .faq-card {
    padding: 24px 16px;
  }

  .faq-trigger {
    padding: 16px 8px 20px;
    font-size: 17px;
  }

  .faq-content {
    padding: 0 8px 20px;
  }

  .step-card {
    padding-top: 22px;
  }

  .step-number {
    position: static;
    margin-bottom: 16px;
  }
}
