/* office.idda.in — one page, light and dark, no external fonts (CSP: self only) */

:root {
  --teal: #0f6e64;
  --teal-strong: #0b5a52;
  --teal-soft: #e6f2f0;
  --amber: #ffc247;
  --ink: #15201f;
  --muted: #56625f;
  --line: #dfe6e4;
  --bg: #ffffff;
  --bg-alt: #f5f8f7;
  --card: #ffffff;
  --shadow: 0 1px 2px rgb(16 40 37 / 6%), 0 8px 24px rgb(16 40 37 / 6%);
  --radius: 14px;
  --font:
    -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Noto Sans KR',
    'Malgun Gothic', 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', system-ui, sans-serif;
  color-scheme: light dark;
}

:lang(ja) {
  --font:
    -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP',
    'Yu Gothic', 'Meiryo', 'Segoe UI', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #3fb3a5;
    --teal-strong: #5cc6b8;
    --teal-soft: #15302d;
    --ink: #e8efed;
    --muted: #a3b1ae;
    --line: #26332f;
    --bg: #0e1513;
    --bg-alt: #121b19;
    --card: #16211f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

:lang(ja) body,
body:lang(ja) {
  word-break: normal;
  line-break: strict;
}

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

a {
  color: var(--teal);
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

h3 {
  font-size: 18px;
}

p {
  margin: 0;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

section {
  padding-block: clamp(56px, 8vw, 96px);
}

.eyebrow {
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
  max-width: 44em;
}

/* header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}

.brand img {
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav a,
.langs a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover,
.langs a:hover {
  color: var(--ink);
}

.langs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.langs a {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.langs a[aria-current='page'] {
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-weight: 700;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-strong);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #06231f;
  }
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
}

.btn-ghost:hover {
  border-color: var(--teal);
}

/* hero */

.hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: 0;
  text-align: center;
  background:
    radial-gradient(
      60% 50% at 50% 0%,
      color-mix(in srgb, var(--amber) 22%, transparent),
      transparent 70%
    ),
    var(--bg);
}

.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero .lead {
  margin-inline: auto;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.shot {
  margin: 48px auto 0;
  max-width: 1040px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: 0 30px 80px rgb(15 110 100 / 18%);
}

/* formats */

.formats {
  padding-block: 22px;
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
}

.formats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}

.formats-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.formats ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.formats li {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* features */

.features h2 {
  text-align: center;
  margin-bottom: 44px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  margin-bottom: 18px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
}

/* collaboration */

.collab {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.collab-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.collab h2 {
  margin-bottom: 16px;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: point;
  display: grid;
  gap: 14px;
}

.points li {
  counter-increment: point;
  position: relative;
  padding: 20px 22px 20px 64px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.points li::before {
  content: counter(point);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #3b2a00;
  font-weight: 800;
  font-size: 14px;
}

.points h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.points p {
  color: var(--muted);
  font-size: 15.5px;
}

/* privacy */

.privacy {
  text-align: center;
}

.privacy h2 {
  margin-bottom: 14px;
}

.privacy p {
  color: var(--muted);
  max-width: 40em;
  margin-inline: auto;
}

/* download */

.download {
  background: linear-gradient(180deg, var(--teal-soft), var(--bg));
  text-align: center;
}

.download h2 {
  margin-bottom: 10px;
}

.download .lead {
  margin-inline: auto;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  text-align: left;
}

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dl-detail {
  color: var(--muted);
  font-size: 14.5px;
  flex: 1;
}

.dl-btn {
  width: 100%;
}

.dl-size {
  font-weight: 500;
  opacity: 0.8;
  font-size: 14px;
}

.dl-more {
  display: flex;
  gap: 14px;
  font-size: 14px;
}

.dl-soon {
  display: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 12px 0;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.dl-card.is-soon .dl-btn,
.dl-card.is-soon .dl-more {
  display: none;
}

.dl-card.is-soon .dl-soon {
  display: block;
}

.dl-alt.is-soon {
  display: none;
}

.dl-note {
  margin: 24px auto 0;
  max-width: 46em;
  color: var(--muted);
  font-size: 14px;
}

/* footer */

.foot {
  padding-block: 40px 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.foot p + p {
  margin-top: 6px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
  font-size: 14.5px;
}

/* 404 */

.missing {
  min-height: 80vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.missing img {
  border-radius: 12px;
}

.missing h1 {
  font-size: 48px;
}

/* narrow screens */

@media (max-width: 900px) {
  .grid,
  .dl-grid {
    grid-template-columns: 1fr 1fr;
  }

  .collab-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav {
    display: none;
  }

  .langs {
    margin-left: auto;
  }

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

  .shot {
    margin-top: 36px;
  }
}
